mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-29 16:59:21 -05:00
changes for script execution (parameters etc.)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user