Commit 291576d
committed
fix: improve Discord voice channel reliability and cleanup
- Increase tournament voice cache TTL from 7 to 30 days to prevent
channel orphaning for long-running tournaments
- Cache brand name query in getArchiveCategoryName for 1 hour to
avoid redundant Hasura queries on every call
- Remove redundant ready room deletion in removeTournamentVoice since
the category children loop already handles it
- Remove unreachable SingleElimination branch in getBracketRoundLabel1 parent 3e0331f commit 291576d
3 files changed
Lines changed: 16 additions & 28 deletions
File tree
- src/discord-bot
- discord-bot-messaging
- discord-tournament-voice
- utilities
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
216 | 222 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
Lines changed: 1 addition & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 363 | | |
376 | 364 | | |
377 | 365 | | |
| |||
413 | 401 | | |
414 | 402 | | |
415 | 403 | | |
416 | | - | |
| 404 | + | |
417 | 405 | | |
418 | 406 | | |
419 | 407 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
0 commit comments