tycrek / ass

The simple self-hosted ShareX server
ISC License
655 stars 53 forks source link

[BUG] [0.14.1-indev] Deleting a user via API will not delete their files from S3 #192

Open tycrek opened 1 year ago

tycrek commented 1 year ago

Is there an existing Issue for this bug?

Expected behavior

Hosts have the option to store files on an S3 host. When the user deletes their file via the deletion URL, ass will delete from either local or S3, depending which was picked.

When deleting users via the new API introduced in 0.14.0, ass will delete all the files and data associated with this user.

Actual behavior

Right now it only does this locally. It should also delete from S3.

Steps to reproduce

  1. Run ass 0.14.1-* and use S3 storage
  2. Delete a user via the API
  3. The files still exist on S3

Logs (optional)

No response

ass version

0.14.1

Deployment

Manual

Operating system

Any

Node version

16