summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-03-20 21:39:02 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-03-20 21:39:02 +0900
commit1c79e304369d7f9f63445f800fa818448b0a8740 (patch)
tree8acf586ef10c734331bc4be5dae52585895a9d25 /src/server/api/endpoints
parentFix #4538 (#4539) (diff)
downloadsharkey-1c79e304369d7f9f63445f800fa818448b0a8740.tar.gz
sharkey-1c79e304369d7f9f63445f800fa818448b0a8740.tar.bz2
sharkey-1c79e304369d7f9f63445f800fa818448b0a8740.zip
Fix NoteReaction (#4547)
Diffstat (limited to 'src/server/api/endpoints')
-rw-r--r--src/server/api/endpoints/notes/reactions.ts4
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