We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612d409 commit 42f6585Copy full SHA for 42f6585
backend/mainServer/src/host/host.controller.ts
@@ -24,9 +24,9 @@ export class HostController {
24
const hostData = await this.hostService.generateStreamKey(uuid);
25
res.status(HttpStatus.OK).json({ 'host-data': hostData });
26
} catch (error) {
27
- if (error.status === 400) {
+ if ((error as { status: number }).status === 400) {
28
res.status(HttpStatus.BAD_REQUEST).json({
29
- error: error.response
+ error: (error as { response: Response }).response
30
});
31
}
32
else {
backend/tsconfig.json
@@ -8,6 +8,10 @@
8
9
"strict": true,
10
"skipLibCheck": true,
11
- "baseUrl": "."
12
- }
+ "baseUrl": ".",
+
13
+ "emitDecoratorMetadata": true,
14
+ "experimentalDecorators": true
15
+ },
16
+ "exclude": ["**/*spec.ts"]
17
0 commit comments