Fixed regression where OPTIONS resulted in 500 instead of 404
This commit is contained in:
@@ -130,8 +130,7 @@ export async function dailyNoteCommand() {
|
||||
});
|
||||
let dailyNoteTemplateText = "";
|
||||
try {
|
||||
const text = await space.readPage(dailyNoteTemplate);
|
||||
dailyNoteTemplateText = text;
|
||||
dailyNoteTemplateText = await space.readPage(dailyNoteTemplate);
|
||||
} catch {
|
||||
console.warn(`No daily note template found at ${dailyNoteTemplate}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user