This commit is contained in:
syuilo 2018-10-03 22:54:10 +09:00
parent 73e0da61d1
commit 65c276ed81

View file

@ -294,7 +294,7 @@ export const pack = async (
} }
// Populate files // Populate files
_note.files = Promise.all(_note.fileIds.map((fileId: mongo.ObjectID) => _note.files = Promise.all((_note.fileIds || []).map((fileId: mongo.ObjectID) =>
packFile(fileId) packFile(fileId)
)); ));