From b4e236235c4271e9787a764053ac294099c35755 Mon Sep 17 00:00:00 2001 From: Mihovil Ilakovac Date: Mon, 28 Oct 2024 13:03:30 +0100 Subject: [PATCH] Update comment and type --- .../Generator/templates/sdk/wasp/server/auth/email/utils.ts | 2 +- waspc/data/Generator/templates/sdk/wasp/server/jobs/_job.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/waspc/data/Generator/templates/sdk/wasp/server/auth/email/utils.ts b/waspc/data/Generator/templates/sdk/wasp/server/auth/email/utils.ts index ccce2f9fa..f429b5684 100644 --- a/waspc/data/Generator/templates/sdk/wasp/server/auth/email/utils.ts +++ b/waspc/data/Generator/templates/sdk/wasp/server/auth/email/utils.ts @@ -69,7 +69,7 @@ async function sendEmailAndSaveMetadata( throw new Error(`User with email: ${email} not found.`); } - const providerData = deserializeAndSanitizeProviderData<'email'>(authIdentity!.providerData); + const providerData = deserializeAndSanitizeProviderData<'email'>(authIdentity.providerData); await updateAuthIdentityProviderData<'email'>(providerId, providerData, metadata); emailSender.send(content).catch((e) => { diff --git a/waspc/data/Generator/templates/sdk/wasp/server/jobs/_job.ts b/waspc/data/Generator/templates/sdk/wasp/server/jobs/_job.ts index 0cb7063fc..73baf6ecb 100644 --- a/waspc/data/Generator/templates/sdk/wasp/server/jobs/_job.ts +++ b/waspc/data/Generator/templates/sdk/wasp/server/jobs/_job.ts @@ -16,7 +16,9 @@ export type {= typeName =}