feat: 베팅 기능 추가 및 베팅 항목 저장 로직 구현

This commit is contained in:
2026-01-23 17:01:01 +00:00
parent 293a5035c6
commit e02e6c8fc4
2 changed files with 67 additions and 0 deletions
+7
View File
@@ -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;
}
}