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
1 changed files with 1 additions and 1 deletions

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