Skip to content

Commit

Permalink
Update comment and type
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed Oct 28, 2024
1 parent 363f1b9 commit c90b32b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 3 additions & 1 deletion waspc/data/Generator/templates/sdk/wasp/server/jobs/_job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export type {= typeName =}<Input extends JSONObject, Output extends JSONValue |
export const {= jobName =} = createJobDefinition({
jobName: '{= jobName =}',
defaultJobOptions: {=& jobPerformOptions =},
// TODO: output job schedule args as undefined if not provided
// TODO: jobSchdule template variable is a JSON string
// and the "args" field is outputted as "null" but it should be "undefined"
// when the value is not provided
// @ts-ignore
jobSchedule: {=& jobSchedule =},
entities,
Expand Down

0 comments on commit c90b32b

Please sign in to comment.