mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 13:53:52 +02:00
Bug Fixes + user last seen while in current world
This commit is contained in:
@@ -770,7 +770,12 @@ class Database {
|
||||
return ref;
|
||||
}
|
||||
|
||||
async getLastSeen(input) {
|
||||
async getLastSeen(input, inCurrentWorld) {
|
||||
if (inCurrentWorld) {
|
||||
var count = 2;
|
||||
} else {
|
||||
var count = 1;
|
||||
}
|
||||
var userId = input.id.replaceAll("'", '');
|
||||
var displayName = input.displayName.replaceAll("'", "''");
|
||||
var ref = {
|
||||
@@ -789,7 +794,7 @@ class Database {
|
||||
userId
|
||||
};
|
||||
}
|
||||
}, `SELECT created_at, user_id FROM gamelog_join_leave WHERE user_id = '${userId}' OR display_name = '${displayName}' ORDER BY id DESC LIMIT 1`);
|
||||
}, `SELECT created_at, user_id FROM gamelog_join_leave WHERE user_id = '${userId}' OR display_name = '${displayName}' ORDER BY id DESC LIMIT ${count}`);
|
||||
return ref;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user