summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-21 14:51:46 +0100
committerRory& <root@rory.gay>2026-03-21 14:51:46 +0100
commit5445706dcf7bce5b3ab8bc3c829752a68e1adbf4 (patch)
tree3007778efe40dc000e84a866ef7fe3befd7da94d
parentlambert-server: dont overwrite express Router class (diff)
downloadserver-ts-5445706dcf7bce5b3ab8bc3c829752a68e1adbf4.tar.xz
lambert-server: Remove unused jsonBody option
-rw-r--r--src/api/Server.ts2
-rw-r--r--src/util/util/lambert-server/Server.ts2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index f6c38398..6e4db32b 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -46,7 +46,7 @@ export class SpacebarServer extends Server { constructor(opts?: Partial<SpacebarServerOptions>) { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore - super({ ...opts, errorHandler: false, jsonBody: false }); + super({ ...opts, errorHandler: false }); } async start() { diff --git a/src/util/util/lambert-server/Server.ts b/src/util/util/lambert-server/Server.ts
index 7ef7e6b6..bb60acb4 100644 --- a/src/util/util/lambert-server/Server.ts +++ b/src/util/util/lambert-server/Server.ts
@@ -7,7 +7,6 @@ export type ServerOptions = { host: string; production: boolean; serverInitLogging: boolean; - jsonBody: boolean; server: http.Server; app: Application; }; @@ -24,7 +23,6 @@ export class Server { if (!opts.host) opts.host = "0.0.0.0"; if (opts.production == null) opts.production = false; if (opts.serverInitLogging == null) opts.serverInitLogging = true; - if (opts.jsonBody == null) opts.jsonBody = true; if (opts.server) this.http = opts.server; this.options = <ServerOptions>opts;