Skip to content
Snippets Groups Projects
Commit e0a4864b authored by syuilo's avatar syuilo
Browse files

refactor: fix type

parent d3946508
No related branches found
No related tags found
No related merge requests found
import define from '../../define.js';
import { ApiError } from '../../error.js';
import { DeepPartial, FindOptionsWhere } from 'typeorm';
import { NoteReactions } from '@/models/index.js';
import { DeepPartial } from 'typeorm';
import { NoteReaction } from '@/models/entities/note-reaction.js';
import define from '../../define.js';
import { ApiError } from '../../error.js';
export const meta = {
tags: ['notes', 'reactions'],
......@@ -45,7 +45,7 @@ export const paramDef = {
export default define(meta, paramDef, async (ps, user) => {
const query = {
noteId: ps.noteId,
} as DeepPartial<NoteReaction>;
} as FindOptionsWhere<NoteReaction>;
if (ps.type) {
// ローカルリアクションはホスト名が . とされているが
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment