Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00a80f8923 |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,3 +1,8 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
*/node_modules/
|
*/node_modules/
|
||||||
*/build/
|
*/build/
|
||||||
|
|
||||||
|
**/node_modules/
|
||||||
|
**/build/
|
||||||
|
.DS_Store
|
||||||
|
.env
|
||||||
@ -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;
|
||||||
|
|||||||
1
frontend/json/runtimeError.json
Normal file
1
frontend/json/runtimeError.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
Loading…
x
Reference in New Issue
Block a user