change imports

This commit is contained in:
cutestnekoaqua 2023-02-10 00:32:30 +01:00
parent 2c6beb66c3
commit 7b9e6a8032
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import { ApiError } from "../../error.js";
import define from "../../define.js";
import { Items } from "@/";
import { ApiError } from "../../../error.js";
import define from "../../../define.js";
import { RegistryItems } from "../../../../../models/index.js";
export const meta = {
requireCredential: true,
@ -34,7 +34,7 @@ export const paramDef = {
export default define(meta, paramDef, async (ps, user) => {
if (ps.key !== "reactions") return;
const query = Items.createQueryBuilder("item")
const query = RegistryItems.createQueryBuilder("item")
.where("item.domain IS NULL")
.andWhere("item.userId = :userId", { userId: user.id })
.andWhere("item.key = :key", { key: ps.key })