From 53dbce30d6090d8803a6898442ede5156cf15aef Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 18 Apr 2026 14:19:54 +0200 Subject: [PATCH] Run prettier, remove accidental imports --- .../messages/#message_id/reactions.ts | 18 +++++++++--------- src/cdn/Server.ts | 2 -- tsconfig.json | 2 +- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts index 3484b288d..305f81fcc 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts @@ -229,15 +229,15 @@ router.put( ? ( await Member.findOneOrFail({ where: { id: req.user_id }, - relations: { roles: true, user: true }, - select: { - index: true, - ...Object.fromEntries(PublicMemberProjection.map((x) => [x, true])), - user: Object.fromEntries(PublicUserProjection.map((x) => [x, true])), - roles: { - id: true, - }, - }, + relations: { roles: true, user: true }, + select: { + index: true, + ...Object.fromEntries(PublicMemberProjection.map((x) => [x, true])), + user: Object.fromEntries(PublicUserProjection.map((x) => [x, true])), + roles: { + id: true, + }, + }, }) ).toPublicMember() : undefined; diff --git a/src/cdn/Server.ts b/src/cdn/Server.ts index 198f6bdd8..b75dbfe63 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -22,8 +22,6 @@ import { CORS, BodyParser } from "@spacebar/api"; import path from "path"; import guildProfilesRoute from "./routes/guild-profiles"; import morgan from "morgan"; -import { loadWebRtcLibrary, mediaServer, WRTC_PORT_MAX, WRTC_PORT_MIN, WRTC_PUBLIC_IP } from "@spacebar/webrtc*"; -import { green, yellow } from "picocolors"; import { storage } from "./util"; export type CDNServerOptions = ServerOptions; diff --git a/tsconfig.json b/tsconfig.json index b320cf88f..20433a12b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,7 @@ /* Projects */ "incremental": true /* Save .tsbuildinfo files to allow for incremental compilation of projects. */, // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ - "tsBuildInfoFile": "./dist/src.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ + "tsBuildInfoFile": "./dist/src.tsbuildinfo" /* Specify the path to .tsbuildinfo incremental compilation file. */, // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */