TypeError: Cannot read property 'query' of undefined

Strapi version 4

module.exports = {
findUserId: async(email, strapi) => {
let response = {
status: ‘error’,
message: ‘Ops something went wrong.’,
data: ‘’
}
try {
console.log(email)
const userPermissionCount = await strapi.query(‘user’, ‘users-permissions’).findOne({ email })
console.log(userPermissionCount)
} catch (error) {
console.log(‘error ->’, error)
response.message = error.message
}
}
}

when i am try to call this function it give me error " TypeError: Cannot read property ‘query’ of undefined"

same problem here, strapi has a poor document