Merge pull request #4263 from nextcloud/removeDocument

remove document (with relation to parent)
This commit is contained in:
Tobias Kaminsky 2019-07-26 14:44:51 +02:00 committed by GitHub
commit e4fb5b0a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -528,6 +528,11 @@ public class DocumentsStorageProvider extends DocumentsProvider {
return String.valueOf(newFile.getFileId());
}
@Override
public void removeDocument(String documentId, String parentDocumentId) throws FileNotFoundException {
deleteDocument(documentId);
}
@Override
public void deleteDocument(String documentId) throws FileNotFoundException {
long docId = Long.parseLong(documentId);