Delete assets once it is fetched

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-08-07 10:42:48 +02:00
parent c42dc6e9dd
commit 921198aad0
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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());