Skip to content

Commit

Permalink
fix: Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Eltik committed Jan 19, 2024
1 parent 5f91e37 commit 98c54aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anify-backend/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export const redis: Redis = env.REDIS_URL
? new Redis((env.REDIS_URL as string) || "redis://localhost:6379")
: ({
get: async () => null,
del: async () => void 0,
set: (): Promise<"OK"> => Promise.resolve("OK"),
sadd: (): Promise<number> => Promise.resolve(0),
sismember: (): Promise<number> => Promise.resolve(0),
on: () => Redis.prototype,
keys: async () => [],
connect: async () => void 0,
Expand Down

0 comments on commit 98c54aa

Please sign in to comment.