diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-03-20 21:39:02 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-03-20 21:39:02 +0900 |
| commit | 1c79e304369d7f9f63445f800fa818448b0a8740 (patch) | |
| tree | 8acf586ef10c734331bc4be5dae52585895a9d25 /src/server/api | |
| parent | Fix #4538 (#4539) (diff) | |
| download | sharkey-1c79e304369d7f9f63445f800fa818448b0a8740.tar.gz sharkey-1c79e304369d7f9f63445f800fa818448b0a8740.tar.bz2 sharkey-1c79e304369d7f9f63445f800fa818448b0a8740.zip | |
Fix NoteReaction (#4547)
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/endpoints/notes/reactions.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/endpoints/notes/reactions.ts b/src/server/api/endpoints/notes/reactions.ts index b28f24249c..7d977154f2 100644 --- a/src/server/api/endpoints/notes/reactions.ts +++ b/src/server/api/endpoints/notes/reactions.ts @@ -1,6 +1,6 @@ import $ from 'cafy'; import ID, { transform } from '../../../../misc/cafy-id'; -import Reaction, { pack } from '../../../../models/note-reaction'; +import NoteReaction, { pack } from '../../../../models/note-reaction'; import define from '../../define'; import { getNote } from '../../common/getters'; import { ApiError } from '../../error'; @@ -87,7 +87,7 @@ export default define(meta, async (ps, user) => { }; } - const reactions = await Reaction.find(query, { + const reactions = await NoteReaction.find(query, { limit: ps.limit, skip: ps.offset, sort: sort |