feat: 베팅 기능 추가 및 베팅 항목 저장 로직 구현
This commit is contained in:
@@ -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