fix: resolve biome lint errors in prisma-facade
- Fix noPrecisionLoss on BIGINT UNSIGNED max value (2^64-1) with biome-ignore comments - Fix noThenProperty on custom thenable with biome-ignore comment - Auto-format remaining files (biome check --write) - Re-stage auto-fixed files from previous commit
This commit is contained in:
1 parent
56061e41d4
commit
beae86194d
22 files changed
+151
-152
No files matched your search
@@ -85,9 +85,9 @@ export const createUser = adminAction(
|
||||
"code" in err &&
|
||||
err.code === "P2002"
|
||||
) {
|
||||
const target = (
|
||||
(err as { meta?: { target?: string[] } }).meta?.target as string[]
|
||||
) ?? [];
|
||||
const target =
|
||||
((err as { meta?: { target?: string[] } }).meta
|
||||
?.target as string[]) ?? [];
|
||||
if (target.includes("username"))
|
||||
throw new ActionError("Username already taken");
|
||||
if (target.includes("mail"))
|
||||
|
||||
Reference in new issue
Block a user