Skip to content

Commit

Permalink
fix outdated admin flags
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Jul 20, 2024
1 parent 5c2c8bc commit 841ec07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/lib/get-admins-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ export async function getAdmins(selectedServerIndex: number) {
const allAdminsList = (
await db.query(
`SELECT
id,
sa_admins.id as id,
player_steamid,
player_name,
immunity,
flags,
sa_admins_flags.flag as flags,
server_id,
UNIX_TIMESTAMP(ends) as ends,
UNIX_TIMESTAMP(created) as created
FROM
sa_admins
LEFT JOIN sa_admins_flags ON sa_admins.id = sa_admins_flags.admin_id
WHERE
(UNIX_TIMESTAMP(ends) > UNIX_TIMESTAMP(NOW()) OR ends IS NULL) AND (server_id=${config.servers[selectedServerIndex].simpleAdminId} OR server_id IS NULL)
ORDER BY
Expand Down

0 comments on commit 841ec07

Please sign in to comment.