feat: 베팅 기능 추가 및 베팅 항목 저장 로직 구현
This commit is contained in:
1 parent
293a5035c6
commit
e02e6c8fc4
2 files changed
+67
No files matched your search
@@ -51,4 +51,11 @@ export class TournamentStore {
|
||||
async setBettingEntries(entries: TournamentBetEntry[]): Promise<void> {
|
||||
await this.redis.set(this.keys.bettingKey, JSON.stringify(entries));
|
||||
}
|
||||
|
||||
async appendBettingEntry(entry: TournamentBetEntry): Promise<TournamentBetEntry[]> {
|
||||
const entries = await this.getBettingEntries();
|
||||
entries.push(entry);
|
||||
await this.setBettingEntries(entries);
|
||||
return entries;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user