Changed types
This commit is contained in:
@@ -81,10 +81,15 @@ export default async function routes(server: FastifyInstance) {
|
||||
}
|
||||
|
||||
let correctedData = data.map(i => {
|
||||
|
||||
|
||||
return {
|
||||
id: i.user_id,
|
||||
// @ts-ignore
|
||||
email: i.auth_users.email,
|
||||
// @ts-ignore
|
||||
profile: i.auth_users.auth_profiles.find(x => x.tenant_id === authUser.tenant_id),
|
||||
// @ts-ignore
|
||||
full_name: i.auth_users.auth_profiles.find(x => x.tenant_id === authUser.tenant_id)?.full_name,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user