mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
Fix SQL errors
This commit is contained in:
@@ -79,7 +79,7 @@ const avatarFavorites = {
|
|||||||
version: dbRow[14]
|
version: dbRow[14]
|
||||||
};
|
};
|
||||||
data.push(row);
|
data.push(row);
|
||||||
}, `SELECT * FROM ${dbVars.userPrefix}_avatar_history INNER JOIN cache_avatar ON cache_avatar.id = ${dbVars.userPrefix}_avatar_history.avatar_id WHERE author_id != "${currentUserId}" ORDER BY ${dbVars.userPrefix}_avatar_history.created_at DESC LIMIT ${limit}`);
|
}, `SELECT * FROM ${dbVars.userPrefix}_avatar_history INNER JOIN cache_avatar ON cache_avatar.id = ${dbVars.userPrefix}_avatar_history.avatar_id WHERE author_id != '${currentUserId}' ORDER BY ${dbVars.userPrefix}_avatar_history.created_at DESC LIMIT ${limit}`);
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -1092,7 +1092,7 @@ const gameLog = {
|
|||||||
(row) => {
|
(row) => {
|
||||||
userId = row[0];
|
userId = row[0];
|
||||||
},
|
},
|
||||||
`SELECT user_id FROM gamelog_join_leave WHERE display_name = @displayName AND user_id != "" ORDER BY id DESC LIMIT 1`,
|
`SELECT user_id FROM gamelog_join_leave WHERE display_name = @displayName AND user_id != '' ORDER BY id DESC LIMIT 1`,
|
||||||
{
|
{
|
||||||
'@displayName': displayName
|
'@displayName': displayName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user