From 85e3bd698566029cc233eb16925c4fab65868c39 Mon Sep 17 00:00:00 2001 From: shreddedbacon Date: Mon, 24 Jun 2024 12:49:02 +1000 Subject: [PATCH] fix: update notification resolvers --- services/api/src/resources/notification/resolvers.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/api/src/resources/notification/resolvers.ts b/services/api/src/resources/notification/resolvers.ts index 7dde5f7bbf..faa5980b79 100644 --- a/services/api/src/resources/notification/resolvers.ts +++ b/services/api/src/resources/notification/resolvers.ts @@ -563,7 +563,7 @@ export const updateNotificationWebhook: ResolverFn = async ( await checkNotificationUpdatePermissions(check, hasPermission) try { - await query(sqlClientPool, Sql.updateNotificationMicrosoftTeams(input)); + await query(sqlClientPool, Sql.updateNotificationWebhook(input)); } catch(error) { if(error.text.includes("Duplicate entry")){ throw new Error( @@ -601,7 +601,7 @@ export const updateNotificationEmail: ResolverFn = async ( await checkNotificationUpdatePermissions(check, hasPermission) try { - await query(sqlClientPool, Sql.updateNotificationMicrosoftTeams(input)); + await query(sqlClientPool, Sql.updateNotificationEmail(input)); } catch(error) { if(error.text.includes("Duplicate entry")){ throw new Error( @@ -639,7 +639,7 @@ export const updateNotificationRocketChat: ResolverFn = async ( await checkNotificationUpdatePermissions(check, hasPermission) try { - await query(sqlClientPool, Sql.updateNotificationMicrosoftTeams(input)); + await query(sqlClientPool, Sql.updateNotificationRocketChat(input)); } catch(error) { if(error.text.includes("Duplicate entry")){ throw new Error( @@ -677,7 +677,7 @@ export const updateNotificationSlack: ResolverFn = async ( await checkNotificationUpdatePermissions(check, hasPermission) try { - await query(sqlClientPool, Sql.updateNotificationMicrosoftTeams(input)); + await query(sqlClientPool, Sql.updateNotificationSlack(input)); } catch(error) { if(error.text.includes("Duplicate entry")){ throw new Error(