mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-23 23:52:05 -05:00
fix: lint
This commit is contained in:
@@ -147,7 +147,7 @@ class ConnectionMutex {
|
||||
#resolve?: () => void;
|
||||
|
||||
async lock(): Promise<void> {
|
||||
while (this.#promise) {
|
||||
while (await this.#promise) {
|
||||
await this.#promise;
|
||||
}
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ class ConnectionMutex {
|
||||
#resolve?: () => void;
|
||||
|
||||
async lock(): Promise<void> {
|
||||
while (this.#promise) {
|
||||
while (await this.#promise) {
|
||||
await this.#promise;
|
||||
}
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ export const prismaAdapter = (prisma: PrismaClient, config: PrismaConfig) => {
|
||||
if (w.operator === "ne" && w.value === null) {
|
||||
const fieldAttributes = getFieldAttributes({
|
||||
model,
|
||||
field: w.field
|
||||
field: w.field,
|
||||
});
|
||||
const isNullable = fieldAttributes?.required !== true;
|
||||
return isNullable ? { [fieldName]: { not: null } } : {};
|
||||
|
||||
Reference in New Issue
Block a user