Skip to content

Commit

Permalink
Fix ban insert query
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Apr 23, 2024
1 parent 9f8312f commit bdd0b3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ban/ban_steam_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (r *banSteamRepository) insertBan(ctx context.Context, ban *domain.BanSteam
const query = `
INSERT INTO ban (target_id, source_id, ban_type, reason, reason_text, note, valid_until,
created_on, updated_on, origin, report_id, appeal_state, include_friends, evade_ok, last_ip)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, case WHEN $11 = 0 THEN null ELSE $11 END, $12, $13, $14)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, case WHEN $11 = 0 THEN null ELSE $11 END, $12, $13, $14, $15)
RETURNING ban_id`

errQuery := r.db.
Expand Down

0 comments on commit bdd0b3e

Please sign in to comment.