Bug fixes

This commit is contained in:
Natsumi
2021-11-03 00:20:49 +13:00
parent 55ac5233d7
commit 6bf11a1f51
2 changed files with 28 additions and 4 deletions

View File

@@ -1081,7 +1081,8 @@ class Database {
async getLastDateGameLogDatabase() {
var gamelogDatabase = [];
var date = '1970-01-01';
// var date = '1970-01-01';
var date = new Date(Date.now() - 86400000).toJSON(); // 24 hours
await sqliteService.execute((dbRow) => {
gamelogDatabase.unshift(dbRow[0]);
}, 'SELECT created_at FROM gamelog_location ORDER BY id DESC LIMIT 1');