feat(rendering): display description, system, duration, format, type and location in Telegram game card
This commit is contained in:
@@ -70,7 +70,17 @@ public sealed class CancelSessionHandler(
|
||||
|
||||
// 3. Загружаем весь батч для перерисовки
|
||||
var batchSessions = await connection.QueryAsync<SessionBatchDto>(
|
||||
@"SELECT id as SessionId, scheduled_at as ScheduledAt, status as Status, max_players as MaxPlayers, join_link as JoinLink, format as Format, location_address as LocationAddress
|
||||
@"SELECT id as SessionId,
|
||||
scheduled_at as ScheduledAt,
|
||||
status as Status,
|
||||
max_players as MaxPlayers,
|
||||
join_link as JoinLink,
|
||||
format as Format,
|
||||
location_address as LocationAddress,
|
||||
description as Description,
|
||||
system as System,
|
||||
duration_minutes as DurationMinutes,
|
||||
is_one_shot as IsOneShot
|
||||
FROM sessions
|
||||
WHERE batch_id = @BatchId
|
||||
ORDER BY scheduled_at",
|
||||
|
||||
@@ -141,7 +141,11 @@ public sealed class PromoteWaitlistedPlayerHandler(
|
||||
max_players AS MaxPlayers,
|
||||
join_link AS JoinLink,
|
||||
format AS Format,
|
||||
location_address AS LocationAddress
|
||||
location_address AS LocationAddress,
|
||||
description AS Description,
|
||||
system AS System,
|
||||
duration_minutes AS DurationMinutes,
|
||||
is_one_shot AS IsOneShot
|
||||
FROM sessions
|
||||
WHERE batch_id = @BatchId
|
||||
ORDER BY scheduled_at
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ public sealed class RescheduleVotingDeadlineService(
|
||||
await using var connection = await dataSource.OpenConnectionAsync(ct);
|
||||
|
||||
var batchSessions = (await connection.QueryAsync<SessionBatchDto>(
|
||||
"SELECT id AS SessionId, scheduled_at AS ScheduledAt, status AS Status, max_players AS MaxPlayers, join_link AS JoinLink, format AS Format, location_address AS LocationAddress FROM sessions WHERE batch_id = @BatchId ORDER BY scheduled_at",
|
||||
"SELECT id AS SessionId, scheduled_at AS ScheduledAt, status AS Status, max_players AS MaxPlayers, join_link AS JoinLink, format AS Format, location_address AS LocationAddress, description AS Description, system AS System, duration_minutes AS DurationMinutes, is_one_shot AS IsOneShot FROM sessions WHERE batch_id = @BatchId ORDER BY scheduled_at",
|
||||
new { result.BatchId })).ToList();
|
||||
|
||||
var batchParticipants = (await connection.QueryAsync<ParticipantBatchDto>(
|
||||
|
||||
Reference in New Issue
Block a user