fixed db update, started no segments

This commit is contained in:
Joe Dowd
2020-08-22 02:14:19 +01:00
parent c1d4ba3c80
commit 44ea0c418a
10 changed files with 247 additions and 7 deletions

8
src/utils/isUserVIP.js Normal file
View File

@@ -0,0 +1,8 @@
const databases = require('../databases/databases.js');
const db = databases.db;
module.exports = (userID) => {
return db.prepare('get', "SELECT count(*) as userCount FROM vipUsers WHERE userID = ?", [userID]).userCount > 0;
}