Commit 04807f8
authored
fix(files_trashbin): remove failed move metadata for file owner
When moving a shared file to the trash fails after its metadata row has been inserted, the failure-cleanup path calls `deleteTrashRow()` with the deleting user.
The row was inserted for the file owner, so this leaves orphaned `files_trash` metadata whenever the owner and deleting user differ.
Doesn't impact success path; just the rollback path.
This change uses `$owner` for the cleanup call, ensuring the inserted metadata row is removed.
Signed-off-by: Josh <josh.t.richards@gmail.com>1 parent a1689cf commit 04807f8
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
395 | 397 | | |
396 | 398 | | |
397 | 399 | | |
| |||
0 commit comments