shady2k / logseq-inbox-telegram-plugin

MIT License
78 stars 5 forks source link

Cannot get today’s journal ? #8

Closed bepolymathe closed 2 years ago

bepolymathe commented 2 years ago

Hi,

image

What does this error message refer to? I simply deactivated/activated the plugin at the request of a developer of another plugin to do a test... and now I have this error message. :thinking:

shady2k commented 2 years ago

When trying to add messsages, plugin execute query:

    ret = await logseq.DB.datascriptQuery(`
      [:find (pull ?p [*])
       :where
       [?b :block/page ?p]
       [?p :block/journal? true]
       [?p :block/journal-day ?d]
       [(= ?d ${todayDate})]]
    `);

Where ${todayDate} - current date in format YYYYMMDD. In your case query return nothing. Try to restart plugin and check you are on latest version.

bepolymathe commented 2 years ago

Hi @shady2k

Thanks for reply. I have the 0.0.3 version. My config is like this and the problem persist

{
  "disabled": false,
  "botToken": "<My-TOKEN>",
  "inboxName": "📥 **INBOX** #Telegram",
  "pollingInterval": 60000,
  "inboxByChat": [],
}

My default date format is dd-MM-yyyy but i haven’t this problem before :thinking:

bepolymathe commented 2 years ago

I started from scratch by uninstalling and reinstalling the plugin calmly. It works. Thanks for your help. And thanks for this great plugin!

clickbrain commented 10 months ago

I uninstalled and reinstalled and still getting this message.

My date format in Logseq is MM do, YYYY