Skip to content

Commit

Permalink
Updates thrown error
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 authored and shreddedbacon committed Sep 8, 2024
1 parent c445263 commit e2c246d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/api/src/resources/notification/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ export const getAllNotifications: ResolverFn = async (
rows = await query(sqlClientPool, Sql.selectNotificationByNameAndType(args.name, args.type));

if (rows.length === 0) {
throw new Error(`No notification found for ${args.name} & ${args.type}`);
throw new Error(`Unauthorized: You don't have permission to "view" on "notification"`);
}

if (rows.length > 0) {
Expand Down

0 comments on commit e2c246d

Please sign in to comment.