lambert-server: Remove unused jsonBody option
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;
|