mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
fix: remove dummy code from email job
This commit is contained in:
@ -15,29 +15,7 @@ export const registerSendConfirmationEmailJob = (client: JobClient) => {
|
|||||||
force: z.boolean().optional(),
|
force: z.boolean().optional(),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
handler: async ({ payload, io }) => {
|
handler: async ({ payload }) => {
|
||||||
console.log('---- start job ----');
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
|
||||||
const result = await io.runTask('console-log-1', async () => {
|
|
||||||
console.log('Task 1');
|
|
||||||
|
|
||||||
return 5;
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log({ result });
|
|
||||||
|
|
||||||
console.log('always runs');
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/require-await
|
|
||||||
await io.runTask('console-log-2', async () => {
|
|
||||||
await Promise.resolve(null);
|
|
||||||
throw new Error('dang2');
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log('---- end job ----');
|
|
||||||
|
|
||||||
// throw new Error('dang')
|
|
||||||
await sendConfirmationToken({
|
await sendConfirmationToken({
|
||||||
email: payload.email,
|
email: payload.email,
|
||||||
force: payload.force,
|
force: payload.force,
|
||||||
|
|||||||
Reference in New Issue
Block a user