usememos / memos

An open-source, lightweight note-taking solution. The pain-less way to create your meaningful notes. Your Notes, Your Way.
https://usememos.com
MIT License
34.07k stars 2.47k forks source link

Can't access memo comments relations in webhook #3914

Closed Luiggi33 closed 1 month ago

Luiggi33 commented 2 months ago

Describe the bug

When attempting to fetch memo relations from a comment in a webhook context, they have not been created yet

Steps to reproduce

  1. Create webhook to some sort of server (like express.js)
  2. Trigger webhook
  3. Fetch the memo relations from the memo name
  4. Returns no relations

The version of Memos you're using.

main branch from github with modifications

Screenshots or additional context

This happens because the memo is only created, when all webhooks are successfully ran, after which the relation is build (as far as I know)

johnnyjoygh commented 1 month ago

Updated with https://github.com/usememos/memos/commit/41976cb89434528e153393aae6fcbffbbc6bc1c8