feat(telegram): set source_platform = 'Telegram' on reschedule proposals
Ensures Telegram-initiated reschedule proposals are tagged with source_platform so the platform-neutral finalizer can distinguish them from Discord proposals. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -83,8 +83,8 @@ public sealed class InitiateRescheduleHandler(
|
|||||||
// 3. Create proposal in AwaitingTime status
|
// 3. Create proposal in AwaitingTime status
|
||||||
await connection.ExecuteAsync(
|
await connection.ExecuteAsync(
|
||||||
"""
|
"""
|
||||||
INSERT INTO reschedule_proposals (session_id, proposed_by, status)
|
INSERT INTO reschedule_proposals (session_id, proposed_by, source_platform, status)
|
||||||
VALUES (@SessionId, @GmId, 'AwaitingTime')
|
VALUES (@SessionId, @GmId, 'Telegram', 'AwaitingTime')
|
||||||
""",
|
""",
|
||||||
new { command.SessionId, GmId = command.TelegramUserId });
|
new { command.SessionId, GmId = command.TelegramUserId });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user