From 3aa455b43c2ef6c40bfca669bb9d557328fe279b Mon Sep 17 00:00:00 2001 From: sup39 Date: Wed, 28 Feb 2024 00:05:50 +0900 Subject: [PATCH] fix (backend): undefined reference to ApiError --- .../src/server/api/endpoints/admin/emoji/add-aliases-bulk.ts | 1 + .../backend/src/server/api/endpoints/admin/emoji/delete-bulk.ts | 1 + .../src/server/api/endpoints/admin/emoji/remove-aliases-bulk.ts | 1 + .../src/server/api/endpoints/admin/emoji/set-aliases-bulk.ts | 1 + .../src/server/api/endpoints/admin/emoji/set-category-bulk.ts | 1 + .../src/server/api/endpoints/admin/emoji/set-license-bulk.ts | 1 + 6 files changed, 6 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/add-aliases-bulk.ts b/packages/backend/src/server/api/endpoints/admin/emoji/add-aliases-bulk.ts index a4387f7b..82f4dd01 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/add-aliases-bulk.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/add-aliases-bulk.ts @@ -1,4 +1,5 @@ import define from "@/server/api/define.js"; +import { ApiError } from "@/server/api/error.js"; import { Emojis } from "@/models/index.js"; import { In } from "typeorm"; import { db } from "@/db/postgre.js"; diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/delete-bulk.ts b/packages/backend/src/server/api/endpoints/admin/emoji/delete-bulk.ts index a6a572af..e0a4ac93 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/delete-bulk.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/delete-bulk.ts @@ -1,4 +1,5 @@ import define from "@/server/api/define.js"; +import { ApiError } from "@/server/api/error.js"; import { Emojis } from "@/models/index.js"; import { In } from "typeorm"; import { insertModerationLog } from "@/services/insert-moderation-log.js"; diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/remove-aliases-bulk.ts b/packages/backend/src/server/api/endpoints/admin/emoji/remove-aliases-bulk.ts index 77bd5bbb..cbaf4185 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/remove-aliases-bulk.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/remove-aliases-bulk.ts @@ -1,4 +1,5 @@ import define from "@/server/api/define.js"; +import { ApiError } from "@/server/api/error.js"; import { Emojis } from "@/models/index.js"; import { In } from "typeorm"; import { db } from "@/db/postgre.js"; diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/set-aliases-bulk.ts b/packages/backend/src/server/api/endpoints/admin/emoji/set-aliases-bulk.ts index 1dd825ac..4e616ab6 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/set-aliases-bulk.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/set-aliases-bulk.ts @@ -1,4 +1,5 @@ import define from "@/server/api/define.js"; +import { ApiError } from "@/server/api/error.js"; import { Emojis } from "@/models/index.js"; import { In } from "typeorm"; import { db } from "@/db/postgre.js"; diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/set-category-bulk.ts b/packages/backend/src/server/api/endpoints/admin/emoji/set-category-bulk.ts index deb99a1d..de07345a 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/set-category-bulk.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/set-category-bulk.ts @@ -1,4 +1,5 @@ import define from "@/server/api/define.js"; +import { ApiError } from "@/server/api/error.js"; import { Emojis } from "@/models/index.js"; import { In } from "typeorm"; import { db } from "@/db/postgre.js"; diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/set-license-bulk.ts b/packages/backend/src/server/api/endpoints/admin/emoji/set-license-bulk.ts index ee78b0a0..33261475 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/set-license-bulk.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/set-license-bulk.ts @@ -1,4 +1,5 @@ import define from "@/server/api/define.js"; +import { ApiError } from "@/server/api/error.js"; import { Emojis } from "@/models/index.js"; import { In } from "typeorm"; import { db } from "@/db/postgre.js";