We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76acc92 commit fb24ff8Copy full SHA for fb24ff8
velog-backend/src/database/rawQuery/users.js
@@ -15,6 +15,7 @@ export const getUserHistory = async (
15
): Promise<UserHistoryRow[]> => {
16
const query = `SELECT c.id, c.created_at, 'comment' AS type FROM comments AS c
17
WHERE fk_user_id = $userId
18
+ AND deleted = false
19
UNION ALL SELECT p.id, p.created_at, 'like' AS type FROM post_likes AS p
20
21
ORDER BY created_at DESC
0 commit comments