Skip to content

Commit

Permalink
Fix query
Browse files Browse the repository at this point in the history
  • Loading branch information
rxdn committed Nov 16, 2024
1 parent 427fa84 commit cdf216a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tickets.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ WHERE "channel_id" = $1 AND "guild_id" = $2;`

func (t *TicketTable) GetAllByUser(ctx context.Context, guildId, userId uint64) (tickets []Ticket, e error) {
query := `
SELECT id, guild_id, channel_id, user_id, open, open_time, welcome_message_id, panel_id, has_transcript, close_time, is_thread, join_message_id, notes_thread_id
SELECT id, guild_id, channel_id, user_id, open, open_time, welcome_message_id, panel_id, has_transcript, close_time, is_thread, join_message_id, notes_thread_id, status
FROM tickets
WHERE "guild_id" = $1 AND "user_id" = $2;`

Expand Down

0 comments on commit cdf216a

Please sign in to comment.