const _create = async ({ email, pass }) => {
try {
const saltRounds = 10;
const salt = await bcrypt.genSalt(saltRounds);
const hashed = await bcrypt.hash(pass, salt);
....
I have 2 files with similar code like above, one is working fine but other is giving warning 'await' has no effect on the type of this expression