Misc fixes

This commit is contained in:
Natsumi
2025-01-30 18:02:53 +13:00
parent 3fda9b771c
commit 6b2d402b8b
8 changed files with 236 additions and 180 deletions

View File

@@ -1660,10 +1660,13 @@ class Database {
let vipQuery = '';
if (vipList.length > 0) {
vipQuery = 'AND user_id IN (';
vipList.forEach((vip, i) => {
vipQuery += `'${vip.replaceAll("'", "''")}', `;
});
vipQuery += "'')";
for (var i = 0; i < vipList.length; i++) {
vipQuery += `'${vipList[i].replaceAll("'", "''")}'`;
if (i < vipList.length - 1) {
vipQuery += ', ';
}
}
vipQuery += ')';
}
var location = true;
var onplayerjoined = true;