mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Fix bug
This commit is contained in:
parent
73e0da61d1
commit
65c276ed81
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
));
|
||||
|
||||
|
|
Loading…
Reference in a new issue