Skip to content

Commit 53dbce3

Browse files
Run prettier, remove accidental imports
1 parent f5c5cc7 commit 53dbce3

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

src/api/routes/channels/#channel_id/messages/#message_id/reactions.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -229,15 +229,15 @@ router.put(
229229
? (
230230
await Member.findOneOrFail({
231231
where: { id: req.user_id },
232-
relations: { roles: true, user: true },
233-
select: {
234-
index: true,
235-
...Object.fromEntries(PublicMemberProjection.map((x) => [x, true])),
236-
user: Object.fromEntries(PublicUserProjection.map((x) => [x, true])),
237-
roles: {
238-
id: true,
239-
},
240-
},
232+
relations: { roles: true, user: true },
233+
select: {
234+
index: true,
235+
...Object.fromEntries(PublicMemberProjection.map((x) => [x, true])),
236+
user: Object.fromEntries(PublicUserProjection.map((x) => [x, true])),
237+
roles: {
238+
id: true,
239+
},
240+
},
241241
})
242242
).toPublicMember()
243243
: undefined;

src/cdn/Server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import { CORS, BodyParser } from "@spacebar/api";
2222
import path from "path";
2323
import guildProfilesRoute from "./routes/guild-profiles";
2424
import morgan from "morgan";
25-
import { loadWebRtcLibrary, mediaServer, WRTC_PORT_MAX, WRTC_PORT_MIN, WRTC_PUBLIC_IP } from "@spacebar/webrtc*";
26-
import { green, yellow } from "picocolors";
2725
import { storage } from "./util";
2826

2927
export type CDNServerOptions = ServerOptions;

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* Projects */
77
"incremental": true /* Save .tsbuildinfo files to allow for incremental compilation of projects. */,
88
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
9-
"tsBuildInfoFile": "./dist/src.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9+
"tsBuildInfoFile": "./dist/src.tsbuildinfo" /* Specify the path to .tsbuildinfo incremental compilation file. */,
1010
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
1111
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
1212
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */

0 commit comments

Comments
 (0)