|
@@ -43,7 +43,7 @@ class AttachmentService {
|
|
|
return attachment;
|
|
return attachment;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- async removeAllAttachment(attachments) {
|
|
|
|
|
|
|
+ async removeAllAttachments(attachments) {
|
|
|
const { fileUploadService } = this.crowi;
|
|
const { fileUploadService } = this.crowi;
|
|
|
const attachmentsCollection = mongoose.connection.collection('attachments');
|
|
const attachmentsCollection = mongoose.connection.collection('attachments');
|
|
|
const unorderAttachmentsBulkOp = attachmentsCollection.initializeUnorderedBulkOp();
|
|
const unorderAttachmentsBulkOp = attachmentsCollection.initializeUnorderedBulkOp();
|