Update comment and type

This commit is contained in:
Mihovil Ilakovac 2024-10-28 13:03:30 +01:00
parent 7afc4f080c
commit b4e236235c
2 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,7 @@ async function sendEmailAndSaveMetadata(
throw new Error(`User with email: ${email} not found.`); 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); await updateAuthIdentityProviderData<'email'>(providerId, providerData, metadata);
emailSender.send(content).catch((e) => { emailSender.send(content).catch((e) => {

View File

@ -16,7 +16,9 @@ export type {= typeName =}<Input extends JSONObject, Output extends JSONValue |
export const {= jobName =} = createJobDefinition({ export const {= jobName =} = createJobDefinition({
jobName: '{= jobName =}', jobName: '{= jobName =}',
defaultJobOptions: {=& jobPerformOptions =}, 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 // @ts-ignore
jobSchedule: {=& jobSchedule =}, jobSchedule: {=& jobSchedule =},
entities, entities,