mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
refactor: fix type
This commit is contained in:
parent
d39465085c
commit
e0a4864bea
1 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
|
import { DeepPartial, FindOptionsWhere } from 'typeorm';
|
||||||
|
import { NoteReactions } from '@/models/index.js';
|
||||||
|
import { NoteReaction } from '@/models/entities/note-reaction.js';
|
||||||
import define from '../../define.js';
|
import define from '../../define.js';
|
||||||
import { ApiError } from '../../error.js';
|
import { ApiError } from '../../error.js';
|
||||||
import { NoteReactions } from '@/models/index.js';
|
|
||||||
import { DeepPartial } from 'typeorm';
|
|
||||||
import { NoteReaction } from '@/models/entities/note-reaction.js';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['notes', 'reactions'],
|
tags: ['notes', 'reactions'],
|
||||||
|
@ -45,7 +45,7 @@ export const paramDef = {
|
||||||
export default define(meta, paramDef, async (ps, user) => {
|
export default define(meta, paramDef, async (ps, user) => {
|
||||||
const query = {
|
const query = {
|
||||||
noteId: ps.noteId,
|
noteId: ps.noteId,
|
||||||
} as DeepPartial<NoteReaction>;
|
} as FindOptionsWhere<NoteReaction>;
|
||||||
|
|
||||||
if (ps.type) {
|
if (ps.type) {
|
||||||
// ローカルリアクションはホスト名が . とされているが
|
// ローカルリアクションはホスト名が . とされているが
|
||||||
|
|
Loading…
Reference in a new issue