Remove import to class-validator, fix listening on port message in bundle

This commit is contained in:
Madeline 2022-09-26 13:25:32 +10:00
parent 5bcfa5ec0b
commit 5f46f559b7
5 changed files with 4 additions and 2 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -6,7 +6,8 @@
"postinstall": "npx patch-package",
"start": "node dist/bundle/start.js",
"build": "tsc -p .",
"generate:rights": "node scripts/rights.js"
"generate:rights": "node scripts/rights.js",
"generate:schema": "node scripts/schema.js"
},
"main": "dist/bundle/index.js",
"types": "src/bundle/index.ts",
@ -76,6 +77,7 @@
"@aws-sdk/client-s3": "^3.178.0",
"@sentry/node": "^7.13.0",
"@sentry/tracing": "^7.13.0",
"@yukikaze-bot/erlpack": "^1.0.1",
"amqplib": "^0.10.3"
},
"_moduleAliases": {

View File

@ -110,6 +110,7 @@ async function main() {
app.use(Sentry.Handlers.tracingHandler());
}
server.listen(port);
await Promise.all([api.start(), cdn.start(), gateway.start()]);
if (Config.get().sentry.enabled) {

View File

@ -25,7 +25,6 @@ import { Sticker } from "./Sticker";
import { Attachment } from "./Attachment";
import { BannedWords } from "../util";
import { HTTPError } from "lambert-server";
import { ValidatorConstraint } from "class-validator";
export enum MessageType {
DEFAULT = 0,