Skip to content

Commit

Permalink
Adjust lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloppupulin committed Mar 20, 2024
1 parent 41b01d2 commit ac58304
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/resolvers/Queries/Users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,18 @@ export const getAllUsersByEmail = async (_: any, params: any, ctx: Context) => {
} = ctx

const { email, orgId, costId } = params

let where = `email=${email}`

if (orgId) {
where += ` AND orgId=${orgId}`
}

if (costId){
if (costId) {
where += ` AND costId=${costId}`
}

return getAllUsers({ masterdata, logger, where: where })
return getAllUsers({ masterdata, logger, where })
}

export const getActiveUserByEmail = async (
Expand Down

0 comments on commit ac58304

Please sign in to comment.