From 00a80f8923a3c68067fb83d0d08f7e855253e3e2 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Wed, 19 Mar 2025 01:48:57 +0000 Subject: [PATCH] some changes? --- .gitignore | 5 +++++ backend/src/db/api/tasks.js | 20 -------------------- frontend/json/runtimeError.json | 1 + 3 files changed, 6 insertions(+), 20 deletions(-) create mode 100644 frontend/json/runtimeError.json diff --git a/.gitignore b/.gitignore index e427ff3..d0eb167 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ node_modules/ */node_modules/ */build/ + +**/node_modules/ +**/build/ +.DS_Store +.env \ No newline at end of file diff --git a/backend/src/db/api/tasks.js b/backend/src/db/api/tasks.js index a6c38f4..544c216 100644 --- a/backend/src/db/api/tasks.js +++ b/backend/src/db/api/tasks.js @@ -204,16 +204,6 @@ module.exports = class TasksDBApi { let where = {}; const currentPage = +filter.page; - const user = (options && options.currentUser) || null; - const userOrganizations = (user && user.organizations?.id) || null; - - if (userOrganizations) { - if (options?.currentUser?.organizationsId) { - where.organizationsId = options.currentUser.organizationsId; - } - } - - offset = currentPage * limit; const orderBy = null; @@ -380,16 +370,6 @@ module.exports = class TasksDBApi { }; } - if (filter.organizations) { - const listItems = filter.organizations.split('|').map((item) => { - return Utils.uuid(item); - }); - - where = { - ...where, - organizationsId: { [Op.or]: listItems }, - }; - } if (filter.createdAtRange) { const [start, end] = filter.createdAtRange; diff --git a/frontend/json/runtimeError.json b/frontend/json/runtimeError.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/frontend/json/runtimeError.json @@ -0,0 +1 @@ +{} \ No newline at end of file