mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-18 05:20:43 +01:00
Delete assets once it is fetched
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c42dc6e9dd
commit
921198aad0
1 changed files with 3 additions and 0 deletions
|
|
@ -102,6 +102,9 @@ class AssetsController extends Controller {
|
|||
return new DataResponse([], Http::STATUS_NOT_FOUND);
|
||||
}
|
||||
|
||||
// Clear the assets so we can only fetch it once
|
||||
$this->assetMapper->delete($asset);
|
||||
|
||||
$userFolder = $this->rootFolder->getUserFolder($asset->getUid());
|
||||
$nodes = $userFolder->getById($asset->getFileid());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue