From 2364096a97ba66949cc3b7fbc5b9fb68977ff3ca Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 23 Dec 2022 12:46:03 +1100 Subject: entities/ConnectionUpdateSchema -> schemas/ConnectionUpdateSchema --- src/api/routes/connections/#connection_name/authorize.ts | 5 ++--- src/util/entities/ConnectionUpdateSchema.ts | 3 --- src/util/entities/index.ts | 1 - src/util/schemas/ConnectionUpdateSchema.ts | 3 +++ src/util/schemas/index.ts | 1 + 5 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 src/util/entities/ConnectionUpdateSchema.ts create mode 100644 src/util/schemas/ConnectionUpdateSchema.ts (limited to 'src') diff --git a/src/api/routes/connections/#connection_name/authorize.ts b/src/api/routes/connections/#connection_name/authorize.ts index 5ce420cf..5c24dc7c 100644 --- a/src/api/routes/connections/#connection_name/authorize.ts +++ b/src/api/routes/connections/#connection_name/authorize.ts @@ -1,7 +1,6 @@ +import { route } from "@fosscord/api"; import { Request, Response, Router } from "express"; -import { FieldErrors } from "../../../../util"; -import { ConnectionStore } from "../../../../util/connections"; -import { route } from "../../../util"; +import { ConnectionStore, FieldErrors } from "../../../../util"; const router = Router(); diff --git a/src/util/entities/ConnectionUpdateSchema.ts b/src/util/entities/ConnectionUpdateSchema.ts deleted file mode 100644 index ac234e7e..00000000 --- a/src/util/entities/ConnectionUpdateSchema.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface ConnectionUpdateSchema { - visibility?: boolean; -} diff --git a/src/util/entities/index.ts b/src/util/entities/index.ts index b4e3ecd0..ad34f67b 100644 --- a/src/util/entities/index.ts +++ b/src/util/entities/index.ts @@ -28,7 +28,6 @@ export * from "./ClientRelease"; export * from "./Config"; export * from "./ConnectedAccount"; export * from "./ConnectionConfigEntity"; -export * from "./ConnectionUpdateSchema"; export * from "./EmbedCache"; export * from "./Emoji"; export * from "./Encryption"; diff --git a/src/util/schemas/ConnectionUpdateSchema.ts b/src/util/schemas/ConnectionUpdateSchema.ts new file mode 100644 index 00000000..ac234e7e --- /dev/null +++ b/src/util/schemas/ConnectionUpdateSchema.ts @@ -0,0 +1,3 @@ +export interface ConnectionUpdateSchema { + visibility?: boolean; +} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index 71b4c2ce..e9f4268e 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -32,6 +32,7 @@ export * from "./ChannelReorderSchema"; export * from "./CodesVerificationSchema"; export * from "./ConnectedAccountSchema"; export * from "./ConnectionCallbackSchema"; +export * from "./ConnectionUpdateSchema"; export * from "./DmChannelCreateSchema"; export * from "./EmojiCreateSchema"; export * from "./EmojiModifySchema"; -- cgit 1.4.1