Yvonne Priscilla commited on
Commit ·
a3718f1
1
Parent(s): 41d7fe0
add where is delete
Browse files
src/app/api/cv-profile/route.ts
CHANGED
|
@@ -34,7 +34,7 @@ async function getProfileIdsByUserId(user_id: string): Promise<string[]> {
|
|
| 34 |
SELECT p.profile_id
|
| 35 |
FROM cv_profile p
|
| 36 |
INNER JOIN cv_file f ON f.file_id = p.file_id
|
| 37 |
-
WHERE f.user_id = ${user_id}::uuid
|
| 38 |
`;
|
| 39 |
return rows.map((r) => r.profile_id);
|
| 40 |
}
|
|
|
|
| 34 |
SELECT p.profile_id
|
| 35 |
FROM cv_profile p
|
| 36 |
INNER JOIN cv_file f ON f.file_id = p.file_id
|
| 37 |
+
WHERE f.user_id = ${user_id}::uuid AND f.is_deleted = false
|
| 38 |
`;
|
| 39 |
return rows.map((r) => r.profile_id);
|
| 40 |
}
|