|
@@ -16,7 +16,7 @@ module.exports = function(crowi) {
|
|
|
connection: mongoose.connection,
|
|
connection: mongoose.connection,
|
|
|
});
|
|
});
|
|
|
// get Collection instance of chunk
|
|
// get Collection instance of chunk
|
|
|
- // const unorderChunkCollection = chunkCollection.initializeUnorderedBulkOp();
|
|
|
|
|
|
|
+ // const chunkCollection = mongoose.connection.collection(CHUNK_COLLECTION_NAME);
|
|
|
|
|
|
|
|
// create promisified method
|
|
// create promisified method
|
|
|
AttachmentFile.promisifiedWrite = util.promisify(AttachmentFile.write).bind(AttachmentFile);
|
|
AttachmentFile.promisifiedWrite = util.promisify(AttachmentFile.write).bind(AttachmentFile);
|