Skip to content

Commit

Permalink
fix: collection name correction
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeReadman committed Sep 30, 2024
1 parent 7d9fda9 commit 95e4193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export const handler: Handler = async (event: MongoDBEvent, context): Promise<vo
await handleLocalAuthorityRegisterRequests(fullDocument as LocalAuthorityRegisterRequest);
break;
}
case 'CharityUsers': {
case 'CharityUser': {
fullDocumentBeforeChange &&
(await handleDeleteCharityUser(fullDocumentBeforeChange as CharityUser));
break;
}
case 'SchoolUsers': {
case 'SchoolUser': {
fullDocumentBeforeChange &&
(await handleDeleteSchoolUser(fullDocumentBeforeChange as SchoolUser));
break;
Expand Down

0 comments on commit 95e4193

Please sign in to comment.