change imports
This commit is contained in:
parent
2c6beb66c3
commit
7b9e6a8032
1 changed files with 4 additions and 4 deletions
|
@ -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 })
|
||||
|
|
Loading…
Reference in a new issue