Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit fb24ff8

Browse files
committed
Fixes #50
1 parent 76acc92 commit fb24ff8

File tree

1 file changed

+1
-0
lines changed
  • velog-backend/src/database/rawQuery

1 file changed

+1
-0
lines changed

velog-backend/src/database/rawQuery/users.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const getUserHistory = async (
1515
): Promise<UserHistoryRow[]> => {
1616
const query = `SELECT c.id, c.created_at, 'comment' AS type FROM comments AS c
1717
WHERE fk_user_id = $userId
18+
AND deleted = false
1819
UNION ALL SELECT p.id, p.created_at, 'like' AS type FROM post_likes AS p
1920
WHERE fk_user_id = $userId
2021
ORDER BY created_at DESC

0 commit comments

Comments
 (0)