diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-04 00:39:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-04 00:39:11 +0900 |
| commit | baad11288af8ae1b950ecb5a62e23a70bee7d51d (patch) | |
| tree | 98a8dd3829753c4f78fd344e8c52b528edbb933e /src/server/api/endpoints/notes/conversation.ts | |
| parent | 9.3.1 (diff) | |
| download | sharkey-baad11288af8ae1b950ecb5a62e23a70bee7d51d.tar.gz sharkey-baad11288af8ae1b950ecb5a62e23a70bee7d51d.tar.bz2 sharkey-baad11288af8ae1b950ecb5a62e23a70bee7d51d.zip | |
ドキュメントが見つからなくてもエラーにせずnullを返すように
Diffstat (limited to 'src/server/api/endpoints/notes/conversation.ts')
| -rw-r--r-- | src/server/api/endpoints/notes/conversation.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/notes/conversation.ts b/src/server/api/endpoints/notes/conversation.ts index 2782d14155..0c23f9e5fc 100644 --- a/src/server/api/endpoints/notes/conversation.ts +++ b/src/server/api/endpoints/notes/conversation.ts @@ -1,5 +1,5 @@ import $ from 'cafy'; import ID from '../../../../misc/cafy-id'; -import Note, { pack, INote } from '../../../../models/note'; +import Note, { packMany, INote } from '../../../../models/note'; import { ILocalUser } from '../../../../models/user'; /** @@ -52,5 +52,5 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) = } // Serialize - res(await Promise.all(conversation.map(note => pack(note, user)))); + res(await packMany(conversation, user)); }); |