Run prettier, remove accidental imports

This commit is contained in:
Rory&
2026-04-18 14:19:54 +02:00
parent f5c5cc7b9d
commit 53dbce30d6
3 changed files with 10 additions and 12 deletions
@@ -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;
-2
View File
@@ -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;
+1 -1
View File
@@ -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. */