Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/api/src/super-ban-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export const superBanUser: APIHandler<'super-ban-user'> = async (
`select count(distinct ban_type)::int as count from user_bans
where user_id = $1
and ban_type in ('posting', 'trading', 'marketControl')
and (expires_at is null or expires_at > now())`,
and ended_at is null
and (end_time is null or end_time > now())`,
[userId]
)
if (activeBanCount.count >= 3) {
Expand Down