mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
change imports
This commit is contained in:
parent
cf13cf44e2
commit
fc8d328018
@ -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 New Issue
Block a user