Skip to content

Commit

Permalink
fix: reformat notification resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil20 committed Oct 28, 2024
1 parent eb7a3cb commit 33ca59d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/gateway/src/features/notification/root-resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import { GQLNotificationType, GQLResolver } from '@gateway/graphql/schema'
import { inScope } from '@gateway/features/user/utils'
import { sendEmailToAllUsers } from './service'
import { unauthorized } from '@hapi/boom'

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -13,6 +8,13 @@ import { unauthorized } from '@hapi/boom'
*
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
*/

import { GQLNotificationType, GQLResolver } from '@gateway/graphql/schema'
import { inScope } from '@gateway/features/user/utils'
import { sendEmailToAllUsers } from './service'
import { unauthorized } from '@hapi/boom'
import { SCOPES } from '@opencrvs/commons/authentication'

export const resolvers: GQLResolver = {
Query: {
async sendNotificationToAllUsers(
Expand Down

0 comments on commit 33ca59d

Please sign in to comment.