diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-03 22:54:10 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-03 22:54:10 +0900 |
| commit | 30c0f9869174127f917505fed79194127c1a0eb0 (patch) | |
| tree | 238314a0cd789ac5581081de331d997277eb2c2e /src | |
| parent | Revert "Enable JSON5 syntax" (diff) | |
| download | misskey-30c0f9869174127f917505fed79194127c1a0eb0.tar.gz misskey-30c0f9869174127f917505fed79194127c1a0eb0.tar.bz2 misskey-30c0f9869174127f917505fed79194127c1a0eb0.zip | |
Fix bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/models/note.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index 0efabc97d8..67ee525c31 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -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) )); |