Created
July 27, 2021 01:18
-
-
Save iaindooley/2e6d9fdd60f68e3b16a6cbfe22344354 to your computer and use it in GitHub Desktop.
setDueBasedOnListName
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var added = new Notification(notification).addedCard(); | |
try | |
{ | |
added.setDue( | |
Trellinator | |
.now() | |
.addHours(10) | |
.minusDays(1) | |
.next(added.currentList().name()) | |
.minusHours(10) | |
); | |
} | |
catch(e) | |
{ | |
//The list name was not a valid day | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment