Skip to content

Commit 57f7e78

Browse files
committed
Fix verification requested state not showing correctly
1 parent f43e546 commit 57f7e78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/queries/me/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const sendVerifyEmail = (memberNumber: number, email: MemberEmail) => {
2929
(Date.now() - email.verificationLastSent.value.getTime()) < SEND_EMAIL_VERIFICATION_COOLDOWN_MS
3030
)
3131
) {
32-
return html`Verification Email Sent!`
32+
return html`Verification Email Sent At ${sanitizeString(email.verificationLastSent.value.toLocaleTimeString())}!`
3333
}
3434
return html`
3535
<a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const memberEmailsTable = sqliteTable('memberEmails', {
4040
emailAddress: text('emailAddress').notNull().$type<EmailAddress>(),
4141
addedAt: integer('addedAt', {mode: 'timestamp_ms'}).notNull(),
4242
verifiedAt: integer('verifiedAt', {mode: 'timestamp_ms'}),
43-
verificationLastSent: integer('verifiedAt', {mode: 'timestamp_ms'}),
43+
verificationLastSent: integer('verificationLastSent', {mode: 'timestamp_ms'}),
4444
});
4545

4646
const createMemberEmailsTable = sql`

0 commit comments

Comments
 (0)