diff --git "a/src/api/routes/channels/\043channel_id/messages/\043message_id/reactions.ts" "b/src/api/routes/channels/\043channel_id/messages/\043message_id/reactions.ts" index 3484b28..305f81f 100644 --- "a/src/api/routes/channels/\043channel_id/messages/\043message_id/reactions.ts" +++ "b/src/api/routes/channels/\043channel_id/messages/\043message_id/reactions.ts" @@ -229,15 +229,15 @@ ? ( 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 198f6bd..b75dbfe 100644 --- a/src/cdn/Server.ts +++ b/src/cdn/Server.ts @@ -22,8 +22,6 @@ 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 b320cf8..20433a1 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. */