From 0b553d5fa981942a79965d6f710a44cf75575dc2 Mon Sep 17 00:00:00 2001 From: Matthew Scheffel Date: Sat, 20 Jan 2024 21:03:19 -0400 Subject: [PATCH] Reduce query to what is minimally required. #2 also, reduced logging level of `_onDaySelect` --- package.json | 2 +- src/App.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3dfbf1d..54e96a0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "logseq-journals-nextprev", "description": "Provides buttons to jump to the next or previous journal entry", - "version": "1.1.2", + "version": "1.1.3", "main": "dist/index.html", "author": "Matthew Scheffel", "scripts": { diff --git a/src/App.vue b/src/App.vue index d9183bf..0f9b061 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,7 +4,7 @@ methods: { async _onDaySelect ({ event, name }) { - console.log("onDaySelect: " + name) + console.debug("onDaySelect: " + name) if (event.shiftKey) { logseq.Editor.openInRightSidebar(name) } else { @@ -25,7 +25,7 @@ try { ret = await logseq.DB.datascriptQuery(` - [:find (pull ?p [*]) + [:find (pull ?p [:block/journal-day :block/name]) :where [?b :block/page ?p] [?p :block/journal? true] @@ -44,7 +44,7 @@ try { ret = await logseq.DB.datascriptQuery(` - [:find (pull ?p [*]) + [:find (pull ?p [:block/journal-day :block/name]) :where [?b :block/page ?p] [?p :block/journal? true] @@ -53,7 +53,7 @@ `) } catch (e) { console.error(e) - } + } return this._cleanJournalQueryReturn(ret) },