Fix SQL errors

This commit is contained in:
Natsumi
2025-09-04 04:59:08 +12:00
parent fd217f12b4
commit 11dfc6649c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
}, },
+1 -1
View File
@@ -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
} }