Skip to content

Commit df06068

Browse files
committed
feat: add deploy redis key
1 parent da98554 commit df06068

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

apps/book-server/src/common/errors/NotfoundError.mts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/database/src/velog-redis/index.mts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class RedisService extends Redis.default implements Service {
4444
existsUser: (userId: string) => `exists:user:${userId}`,
4545
existsWriter: (userId: string) => `exists:writer:${userId}`,
4646
errorMessageCache: (type: string, userId: string) => `error:${type}:${userId}`,
47+
deployBook: (bookId: string) => `book:deploy:${bookId}`,
4748
}
4849
}
4950

@@ -71,10 +72,11 @@ type GenerateRedisKey = {
7172
userCache: (username: string) => string
7273
postSeries: (username: string, seriesUrlSlug: string) => string
7374
changeEmail: (code: string) => string
75+
trendingWriters: () => string
7476
existsUser: (userId: string) => string
7577
existsWriter: (userId: string) => string
7678
errorMessageCache: (type: string, userId: string) => string
77-
trendingWriters: () => string
79+
deployBook: (bookId: string) => string
7880
}
7981

8082
type QueueName = 'createFeed' | 'checkPostSpam'

0 commit comments

Comments
 (0)