Skip to content

Commit 9b102eb

Browse files
authored
Merge branch 'basic-task-sorting' into task-sorting
2 parents 00f933e + c6080a5 commit 9b102eb

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

config/default/app_settings.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

config/default/tasks.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,13 @@ module.exports = [
321321
const endTime = addDays(dueDate, event.end).getTime();
322322
return isFormArraySubmittedInWindow(contact.reports, ['pnc_danger_sign_follow_up_baby'], startTime, endTime);
323323
},
324-
priority: function(contact, report) {
325-
console.warn('CONTACT', contact);
326-
console.warn('REPORT', report);
327-
const score = 10;
324+
priority: function(contact, report, event, dueDate) {
325+
console.warn(contact);
326+
console.warn(event);
327+
console.warn(dueDate);
328328
return {
329-
level: score,
330-
label: getPriorityCategory(score),
329+
level: 10,
330+
label: 'High',
331331
};
332332
},
333333
actions: [
@@ -368,13 +368,13 @@ module.exports = [
368368
const endTime = addDays(dueDate, event.end + 1).getTime();
369369
return isFormArraySubmittedInWindow(contact.reports, ['pnc_danger_sign_follow_up_baby'], startTime, endTime);
370370
},
371-
priority: function(contact, report) {
372-
console.warn('CONTACT', contact);
373-
console.warn('REPORT', report);
374-
const score = 10;
371+
priority: function(contact, report, event, dueDate) {
372+
console.warn(contact);
373+
console.warn(event);
374+
console.warn(dueDate);
375375
return {
376-
level: score,
377-
label: getPriorityCategory(score),
376+
level: 10,
377+
label: 'High',
378378
};
379379
},
380380
actions: [

0 commit comments

Comments
 (0)