Skip to content

Commit

Permalink
Update validations.ts (#6387)
Browse files Browse the repository at this point in the history
Change type of validateUniqueness to match type declaration and fix error on optional fourth argument.
  • Loading branch information
noire-munich committed Oct 3, 2022
1 parent 6e77af7 commit fc8ee95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/validations/validations.ts
Expand Up @@ -636,7 +636,7 @@ export async function validateUniqueness(
model: string,
fields: Record<string, unknown>,
optionsOrCallback: UniquenessValidatorOptions,
callback: (tx: PrismaClient) => Promise<any>
callback?: (tx: PrismaClient) => Promise<any>
): Promise<any>
export async function validateUniqueness(
model: string,
Expand Down

0 comments on commit fc8ee95

Please sign in to comment.