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

21 lines
439 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
}
return pillar.api.thenGetNodes(where, embedded);
}
export { thenGetTasks, thenGetProjectTasks }