Skip to content

Commit

Permalink
Updates thrown error
Browse files Browse the repository at this point in the history
  • Loading branch information
CGoodwin90 committed Aug 20, 2024
1 parent 3dc5bcc commit 6876943
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 @@ -717,7 +717,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 6876943

Please sign in to comment.