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
34k stars 2.46k forks source link

Deleted resources during "Edit Memo" are not listed in "Unused resources" #3246

Closed synthpop123 closed 6 months ago

synthpop123 commented 6 months ago

Describe the bug

When editing a memo and removing attached resources, the deleted resources are not listed in the "Unused resources" section, despite still existing in the storage (I'm using Cloudflare R2).

Steps to reproduce

  1. Open a memo containing attached resources.
  2. Edit the memo and delete some attached resources.
  3. Navigate to the "Resources" tab.
  4. Observe that the deleted resources are not listed under the "Unused resources" section.
  5. Confirm that the deleted resources still persist in the storage.

The version of Memos you're using

0.21.0

Screenshots or additional context

No response

boojack commented 6 months ago

The unrelated resource data(in database) will be deleted.

Confirm that the deleted resources still persist in the storage.

Can't reproduce the problem.