Fix exception when restoring files from trash

This commit is contained in:
Ming Ming 2024-02-07 00:26:32 +08:00
parent aac86d8590
commit d8048b2004

View file

@ -15,7 +15,8 @@ class RestoreTrashbin {
static bool require(DiContainer c) => true;
Future<void> call(Account account, File file) async {
await Move(_c)(
// we don't cache the trashbin
await Move(_c.withRemoteRepo())(
account,
file,
"remote.php/dav/trashbin/${account.userId}/restore/${file.filename}",