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

This commit is contained in:
Hide_D committed 2026-01-23 17:01:01 +00:00
1 parent 293a5035c6
commit e02e6c8fc4
2 files changed
+67

No files matched your search

+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;
}
}