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:
@@ -444,7 +444,9 @@ async function runFindMany(
|
||||
if (condition) stmt = stmt.where(condition);
|
||||
if (orderBy.length) stmt = stmt.orderBy(...orderBy);
|
||||
if (args.take !== undefined) stmt = stmt.limit(args.take);
|
||||
else if (args.skip) stmt = stmt.limit(18446744073709551615);
|
||||
else if (args.skip)
|
||||
// biome-ignore lint/correctness/noPrecisionLoss: SQL literal for BIGINT UNSIGNED max value (2^64-1 — exceeds JS number precision)
|
||||
stmt = stmt.limit(18446744073709551615);
|
||||
if (args.skip) stmt = stmt.offset(args.skip);
|
||||
|
||||
const rows = (await stmt) as any[];
|
||||
@@ -804,7 +806,9 @@ async function runGroupBy(
|
||||
}
|
||||
|
||||
if (args.take !== undefined) stmt = stmt.limit(args.take);
|
||||
else if (args.skip) stmt = stmt.limit(18446744073709551615);
|
||||
else if (args.skip)
|
||||
// biome-ignore lint/correctness/noPrecisionLoss: SQL literal for BIGINT UNSIGNED max value (2^64-1 — exceeds JS number precision)
|
||||
stmt = stmt.limit(18446744073709551615);
|
||||
if (args.skip) stmt = stmt.offset(args.skip);
|
||||
|
||||
const rows = (await stmt) as any[];
|
||||
@@ -871,6 +875,7 @@ class PrismaPromise<T> implements PromiseLike<T> {
|
||||
private readonly client: Client,
|
||||
) {}
|
||||
|
||||
// biome-ignore lint/suspicious/noThenProperty: Custom thenable for $transaction chaining — routes through Drizzle at runtime
|
||||
then<TResult1 = T, TResult2 = never>(
|
||||
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,
|
||||
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,
|
||||
|
||||
Reference in New Issue
Block a user