Skip to content

Commit

Permalink
rename loader function for single DSA Report
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Nov 2, 2023
1 parent c879e5e commit c8cf99d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/core/server/graph/loaders/DSAReports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface FindDSAReportInput {
}

export default (ctx: GraphContext) => ({
find: new DataLoader(
dsaReport: new DataLoader(
createManyBatchLoadFn((input: FindDSAReportInput) =>
find(ctx.mongo, ctx.tenant, input)
),
Expand Down
2 changes: 1 addition & 1 deletion server/src/core/server/graph/resolvers/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export const NotificationResolver: Required<
return null;
}

return await ctx.loaders.DSAReports.find.load({ id: reportID });
return await ctx.loaders.DSAReports.dsaReport.load({ id: reportID });
},
};

0 comments on commit c8cf99d

Please sign in to comment.