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.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.ts')
| -rw-r--r-- | src/server/api/endpoints/notes.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/notes.ts b/src/server/api/endpoints/notes.ts index 5fa58d19de..d65710d33f 100644 --- a/src/server/api/endpoints/notes.ts +++ b/src/server/api/endpoints/notes.ts @@ -1,5 +1,5 @@ import $ from 'cafy'; import ID from '../../../misc/cafy-id'; -import Note, { pack } from '../../../models/note'; +import Note, { packMany } from '../../../models/note'; import getParams from '../get-params'; export const meta = { @@ -116,5 +116,5 @@ export default (params: any) => new Promise(async (res, rej) => { }); // Serialize - res(await Promise.all(notes.map(note => pack(note)))); + res(await packMany(notes)); }); |