Compare commits

...

1 Commits

Author SHA1 Message Date
Flatlogic Bot
00a80f8923 some changes? 2025-03-19 01:48:57 +00:00
3 changed files with 6 additions and 20 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
node_modules/ node_modules/
*/node_modules/ */node_modules/
*/build/ */build/
**/node_modules/
**/build/
.DS_Store
.env

View File

@ -204,16 +204,6 @@ module.exports = class TasksDBApi {
let where = {}; let where = {};
const currentPage = +filter.page; 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; 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) { if (filter.createdAtRange) {
const [start, end] = filter.createdAtRange; const [start, end] = filter.createdAtRange;

View File

@ -0,0 +1 @@
{}