Skip to content

Commit

Permalink
fix: remove syncRoles from listRoles
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudge committed Nov 9, 2023
1 parent 7863ad5 commit fb68d4d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions node/resolvers/Queries/Roles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { currentRoleNames, currentSchema } from '../../utils'
import { ROLES_VBASE_ID } from '../../utils/constants'
import { syncRoles } from '../Mutations/Roles'
import { getUserByRole } from './Users'

const sorting = (a: any, b: any) => (a.name > b.name ? 1 : -1)
Expand Down Expand Up @@ -106,8 +105,6 @@ export const listRoles = async (_: any, __: any, ctx: Context) => {
} = ctx

try {
await syncRoles(ctx)

return await searchRoles(null, ctx)
} catch (e) {
logger.error({
Expand Down

0 comments on commit fb68d4d

Please sign in to comment.