mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 12:57:04 +02:00
Clean up orphaned non-global admins on the expire timer
This commit is contained in:
parent
e028441b56
commit
fd94ac8d2b
5 changed files with 29 additions and 1 deletions
|
|
@ -240,6 +240,9 @@ public class SqliteDatabaseProvider(string filePath) : IDatabaseProvider
|
|||
|
||||
public string GetDeleteOldAdminsQuery() =>
|
||||
"DELETE FROM sa_admins WHERE ends IS NOT NULL AND ends <= @CurrentTime;";
|
||||
|
||||
public string GetDeleteOrphanedAdminsQuery() =>
|
||||
"DELETE FROM sa_admins WHERE `global` = 0 AND id NOT IN (SELECT admin_id FROM sa_admins_servers);";
|
||||
|
||||
public string GetAddMuteQuery(bool includePlayerName) =>
|
||||
includePlayerName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue