mirror of
https://github.com/documenso/documenso.git
synced 2025-11-25 06:01:35 +10:00
chore: changes based on review
This commit is contained in:
@ -20,6 +20,6 @@ export const DOCUMENT_AUDIT_LOG_EMAIL_FORMAT = {
|
||||
description: 'Document completed',
|
||||
},
|
||||
[DOCUMENT_EMAIL_TYPE.REMINDER]: {
|
||||
description: 'Reminder',
|
||||
description: 'Signing Reminder',
|
||||
},
|
||||
} satisfies Record<keyof typeof DOCUMENT_EMAIL_TYPE, unknown>;
|
||||
|
||||
@ -35,10 +35,10 @@ export class InngestJobProvider extends BaseJobProvider {
|
||||
}
|
||||
|
||||
public defineJob<N extends string, T>(job: JobDefinition<N, T>): void {
|
||||
let fn: InngestFunction.Any;
|
||||
let jobFunction: InngestFunction.Any;
|
||||
|
||||
if (job.trigger.type === 'cron') {
|
||||
fn = this._client.createFunction(
|
||||
jobFunction = this._client.createFunction(
|
||||
{
|
||||
id: job.id,
|
||||
name: job.name,
|
||||
@ -60,7 +60,7 @@ export class InngestJobProvider extends BaseJobProvider {
|
||||
},
|
||||
);
|
||||
} else {
|
||||
fn = this._client.createFunction(
|
||||
jobFunction = this._client.createFunction(
|
||||
{
|
||||
id: job.id,
|
||||
name: job.name,
|
||||
@ -83,7 +83,7 @@ export class InngestJobProvider extends BaseJobProvider {
|
||||
);
|
||||
}
|
||||
|
||||
this._functions.push(fn);
|
||||
this._functions.push(jobFunction);
|
||||
}
|
||||
|
||||
public async triggerJob(options: SimpleTriggerJobOptions): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user