Skip to content

Instantly share code, notes, and snippets.

@iaindooley
Last active March 11, 2019 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iaindooley/11d3ad9775560f0dea79dd5018bc926f to your computer and use it in GitHub Desktop.
Save iaindooley/11d3ad9775560f0dea79dd5018bc926f to your computer and use it in GitHub Desktop.
Recurring
function scheduleRemindOnDueDate(notification)
{
new Notification(notification).actionOnDueDateAdded("actionReminder",signature);
}
function actionReminder(notification,signature,original_time)
{
new Notification(notification).card().label("Recurring").card().postComment("@card");
ExecutionQueue.push("actionReminder",notification,signature,original_time.addDays(7));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment