Skip to content

Commit

Permalink
Reduce query to what is minimally required. #2
Browse files Browse the repository at this point in the history
also, reduced logging level of `_onDaySelect`
  • Loading branch information
isosphere committed Jan 21, 2024
1 parent 65a8415 commit 0b553d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -53,7 +53,7 @@
`)
} catch (e) {
console.error(e)
}
}
return this._cleanJournalQueryReturn(ret)
},
Expand Down

0 comments on commit 0b553d5

Please sign in to comment.