Files
attract/src/scripts/js/es6/common/api/tasks.js

22 lines
470 B
JavaScript
Raw Normal View History

function thenGetTasks(parentId) {
let where = {
parent: parentId,
node_type: 'attract_task'
};
return pillar.api.thenGetNodes(where);
}
function thenGetProjectTasks(projectId) {
let where = {
project: projectId,
node_type: 'attract_task'
}
let embedded = {
parent: 1
}
let sort = 'parent';
return pillar.api.thenGetNodes(where, embedded, sort);
}
export { thenGetTasks, thenGetProjectTasks }