mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-14 16:15:18 +00:00
Run prettier, remove accidental imports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user