This commit is contained in:
syuilo 2018-10-03 22:54:10 +09:00
parent 06a7c2e138
commit 30c0f98691
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

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