Skip to content

Commit f43e546

Browse files
committed
Use the normalised email when updating verification requested in the table
1 parent f925e43 commit f43e546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/read-models/shared-state/update-state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const updateState =
166166
.where(
167167
and(
168168
eq(memberEmailsTable.memberNumber, event.memberNumber),
169-
eq(memberEmailsTable.emailAddress, event.email)
169+
eq(memberEmailsTable.emailAddress, normaliseEmailAddress(event.email))
170170
)
171171
)
172172
.run();

0 commit comments

Comments
 (0)