You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apis=awaitdb.query('SELECT * FROM api_collections WHERE folder_id = ? AND branch = ?',[folderId,activeBranch]);
35
+
apis=awaitdb.query('SELECT * FROM api_collections WHERE folder_id = ? AND branch = ? AND (is_deleted = 0 OR is_deleted = false OR is_deleted IS NULL)',[folderId,activeBranch]);
apis=awaitdb.query('SELECT * FROM api_collections WHERE project_id = ? AND branch = ?',[user.projectId,activeBranch]);
43
+
apis=awaitdb.query('SELECT * FROM api_collections WHERE project_id = ? AND branch = ? AND (is_deleted = 0 OR is_deleted = false OR is_deleted IS NULL)',[user.projectId,activeBranch]);
44
44
}else{
45
45
// Resolve actual folder IDs by checking both ID and name in permissions
46
-
constallFolders=awaitdb.query('SELECT id, name FROM folders WHERE project_id = ? AND branch = ?',[user.projectId,activeBranch]);
46
+
constallFolders=awaitdb.query('SELECT id, name FROM folders WHERE project_id = ? AND branch = ? AND (is_deleted = 0 OR is_deleted = false OR is_deleted IS NULL)',[user.projectId,activeBranch]);
`SELECT * FROM api_collections WHERE project_id = ? AND branch = ? AND folder_id IN (${placeholders})`,
59
+
`SELECT * FROM api_collections WHERE project_id = ? AND branch = ? AND folder_id IN (${placeholders}) AND (is_deleted = 0 OR is_deleted = false OR is_deleted IS NULL)`,
'SELECT id, name, description FROM folders WHERE project_id = ? ORDER BY order_index',
165
+
'SELECT id, name, description FROM folders WHERE project_id = ? AND (is_deleted IS NULL OR is_deleted = FALSE OR is_deleted = 0) ORDER BY order_index',
166
166
[projectId]
167
167
);
168
168
returnrows;
@@ -181,20 +181,23 @@ export async function getApisByFolders(adapter: DbAdapter, projectId: string, al
181
181
SELECT ac.*, f.name as folder_name, f.description as folder_description
182
182
FROM api_collections ac
183
183
JOIN folders f ON ac.folder_id = f.id
184
-
WHERE ac.project_id = ? AND f.name IN (${placeholders})
184
+
WHERE ac.project_id = ?
185
+
AND f.name IN (${placeholders})
186
+
AND (ac.is_deleted IS NULL OR ac.is_deleted = FALSE OR ac.is_deleted = 0)
187
+
AND (f.is_deleted IS NULL OR f.is_deleted = FALSE OR f.is_deleted = 0)
constrows=awaitadapter.query<any>('SELECT * FROM folders WHERE id = ? AND project_id = ?',[folderId,projectId]);
195
+
constrows=awaitadapter.query<any>('SELECT * FROM folders WHERE id = ? AND project_id = ? AND (is_deleted IS NULL OR is_deleted = FALSE OR is_deleted = 0)',[folderId,projectId]);
constrows=awaitadapter.query<any>('SELECT * FROM api_collections WHERE folder_id = ? AND project_id = ?',[folderId,projectId]);
200
+
constrows=awaitadapter.query<any>('SELECT * FROM api_collections WHERE folder_id = ? AND project_id = ? AND (is_deleted IS NULL OR is_deleted = FALSE OR is_deleted = 0)',[folderId,projectId]);
0 commit comments