This commit is contained in:
syuilo
2018-10-03 22:54:10 +09:00
parent 06a7c2e138
commit 30c0f98691

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