Fix real Biome bugs: inner declarations, dup keys, assign-in-expr, implicit any, cookie, a11y svg/keyboard, json
Local Build and Deploy / deploy (push) Successful in 51s
Local Build and Deploy / deploy (push) Successful in 51s
This commit is contained in:
1 parent
8d5c8ec96f
commit
59b63d6e70
19 files changed
+76
-44
No files matched your search
@@ -152,5 +152,5 @@ export class DbService {
|
||||
}
|
||||
}
|
||||
|
||||
export const db = globalForDb._db ?? (globalForDb._db = new DbService());
|
||||
export const db = globalForDb._db ?? new DbService();
|
||||
if (env.NODE_ENV !== "production") globalForDb._db = db;
|
||||
+2
-3
@@ -22,9 +22,8 @@ function createRedis(): Redis | null {
|
||||
}
|
||||
|
||||
export const redis: Redis | null =
|
||||
globalForRedis.redis !== undefined
|
||||
? globalForRedis.redis
|
||||
: (globalForRedis.redis = createRedis());
|
||||
globalForRedis.redis !== undefined ? globalForRedis.redis : createRedis();
|
||||
if (globalForRedis.redis === undefined) globalForRedis.redis = redis;
|
||||
|
||||
export async function withRedis<T>(
|
||||
fallback: () => Promise<T>,
|
||||
|
||||
Reference in new issue
Block a user