mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 02:32:00 +10:00
fix: type casting
This commit is contained in:
@ -67,9 +67,8 @@ export class JobClient<T extends ReadonlyArray<JobDefinition> = []> {
|
||||
_cacheKey: string,
|
||||
jobOptions: SimpleTriggerJobOptions,
|
||||
): Promise<unknown> => {
|
||||
// Type casting is necessary due to generic constraints
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return await this.triggerJob(jobOptions as any);
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
||||
return await this.triggerJob(jobOptions as TriggerJobOptions<T>);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { DocumentVisibility } from '@prisma/client';
|
||||
import { DocumentStatus, TeamMemberRole } from '@prisma/client';
|
||||
import { DocumentStatus, DocumentVisibility, TeamMemberRole } from '@prisma/client';
|
||||
import { match } from 'ts-pattern';
|
||||
|
||||
import { isUserEnterprise } from '@documenso/ee/server-only/util/is-document-enterprise';
|
||||
@ -119,7 +118,6 @@ export const updateDocument = async ({
|
||||
|
||||
// If no data just return the document since this function is normally chained after a meta update.
|
||||
if (!data || Object.values(data).length === 0) {
|
||||
console.log('no data');
|
||||
return document;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user