Skip to content

Commit

Permalink
fix: getAll recent 예외처리
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed Jan 26, 2024
1 parent 07160dc commit 5348b6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/poker/poker.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ export class PokerService {
}

await this.redisClient.json.set(poker.id, '.', poker);
await this.setRecent(poker.id);
}

async getAll() {
const keys = await this.redisClient.keys('*');
keys.filter((key) => key !== 'recent');
let keys = await this.redisClient.keys('*');
keys = keys.filter((key) => key !== 'recent');

const pokers = [];
for (const key of keys) {
Expand Down

0 comments on commit 5348b6b

Please sign in to comment.