change imports

This commit is contained in:
cutestnekoaqua 2023-02-10 00:32:30 +01:00
parent cf13cf44e2
commit fc8d328018

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 })