changes for script execution (parameters etc.)

This commit is contained in:
azivner
2018-01-26 23:40:48 -05:00
parent 5981b9bc7b
commit 005480059a
5 changed files with 53 additions and 10 deletions
+5 -1
View File
@@ -81,7 +81,11 @@ async function getMonthNoteId(dateTimeStr, rootNoteId) {
return monthNoteId;
}
async function getDateNoteId(dateTimeStr, rootNoteId) {
async function getDateNoteId(dateTimeStr, rootNoteId = null) {
if (!rootNoteId) {
rootNoteId = await getRootNoteId();
}
const dateStr = dateTimeStr.substr(0, 10);
const dayNumber = dateTimeStr.substr(8, 2);