mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-23 20:29:53 +00:00
refactor: change # imports into @spacebar/ imports
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ import { BcryptWorkerPool } from "../util/util/workers/bcrypt/BcryptWorkerPool";
|
||||
import { Authentication, CORS, ImageProxy, BodyParser, ErrorHandler, initRateLimits, initTranslation } from "./middlewares";
|
||||
import { initInstance } from "./util/handlers/Instance";
|
||||
import { route, sendMessage } from "./util";
|
||||
import { EmbedType, MessageReferenceType, MessageType, PollAnswerCount } from "#schemas";
|
||||
import { EmbedType, MessageReferenceType, MessageType, PollAnswerCount } from "@spacebar/schemas";
|
||||
|
||||
const ASSETS_FOLDER = path.join(__dirname, "..", "..", "assets");
|
||||
const PUBLIC_ASSETS_FOLDER = path.join(ASSETS_FOLDER, "public");
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
|
||||
import { Request, Response, Router } from "express";
|
||||
import { route } from "@spacebar/api/util/handlers/route";
|
||||
import { Message, User } from "#database";
|
||||
import { DiscordApiErrors } from "#util";
|
||||
import { PollAnswerCount } from "#schemas";
|
||||
import { Message, User } from "@spacebar/database";
|
||||
import { DiscordApiErrors } from "@spacebar/util";
|
||||
import { PollAnswerCount } from "@spacebar/schemas";
|
||||
import { In } from "typeorm";
|
||||
|
||||
const router: Router = Router({ mergeParams: true });
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
import { Request, Response, Router } from "express";
|
||||
import { route } from "@spacebar/api/util/handlers/route";
|
||||
import { PollAnswerCount, PollUserAnswersSchema } from "@spacebar/schemas";
|
||||
import { Message } from "#database";
|
||||
import { DiscordApiErrors, emitEvent, ErrorList, FieldError, makeObjectErrorContent, MessagePollVoteAddEvent, MessagePollVoteRemoveEvent } from "#util";
|
||||
import { Message } from "@spacebar/database";
|
||||
import { DiscordApiErrors, emitEvent, ErrorList, FieldError, makeObjectErrorContent, MessagePollVoteAddEvent, MessagePollVoteRemoveEvent } from "@spacebar/util";
|
||||
|
||||
const router: Router = Router({ mergeParams: true });
|
||||
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
|
||||
import { Request, Response, Router } from "express";
|
||||
import { route } from "@spacebar/api/util/handlers/route";
|
||||
import { Message } from "#database";
|
||||
import { DiscordApiErrors, emitEvent, MessageUpdateEvent, pendingPolls } from "#util";
|
||||
import { EmbedType, MessageReferenceType, MessageType, PollAnswerCount } from "#schemas";
|
||||
import { sendMessage } from "#api/util";
|
||||
import { Message } from "@spacebar/database";
|
||||
import { DiscordApiErrors, emitEvent, MessageUpdateEvent, pendingPolls } from "@spacebar/util";
|
||||
import { EmbedType, MessageReferenceType, MessageType, PollAnswerCount } from "@spacebar/schemas";
|
||||
import { sendMessage } from "@spacebar/api/util";
|
||||
|
||||
const router: Router = Router({ mergeParams: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user