feature: is_platform changes

This commit is contained in:
simos
2025-11-05 00:25:47 +01:00
parent 519b5e5209
commit 23de8c7863
6 changed files with 84 additions and 10 deletions

View File

@@ -117,6 +117,15 @@ const userDb = {
} catch (err) {
throw err;
}
},
getFirstUser: () => {
try {
const row = db.prepare('SELECT id, username, created_at, last_login FROM users WHERE is_active = 1 LIMIT 1').get();
return row;
} catch (err) {
throw err;
}
}
};