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

View File

@@ -79,7 +79,7 @@ const avatarFavorites = {
version: dbRow[14]
};
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;
},