mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-13 18:12:08 +00:00
feat: promote accepted proposals from API
This commit is contained in:
@@ -75,8 +75,8 @@ ORDER BY enqueued_at, ticket_id
|
||||
LIMIT $2
|
||||
FOR UPDATE SKIP LOCKED`
|
||||
|
||||
ProposalParticipantInsertSQL = `INSERT INTO proposal_participants (proposal_id, player_id, ticket_id, response)
|
||||
VALUES ($1, $2, $3, 'PENDING')`
|
||||
ProposalParticipantInsertSQL = `INSERT INTO proposal_participants (proposal_id, player_id, ticket_id, response, team, slot)
|
||||
VALUES ($1, $2, $3, 'PENDING', $4, $5)`
|
||||
|
||||
QueueTicketProposeSQL = `UPDATE queue_tickets SET state = 'PROPOSED', revision = revision + 1
|
||||
WHERE ticket_id = $1 AND player_id = $2 AND playlist = $3 AND state = 'QUEUED' AND expires_at > $4`
|
||||
|
||||
Reference in New Issue
Block a user