mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
change imports
This commit is contained in:
parent
cf13cf44e2
commit
fc8d328018
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