mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-29 05:29:53 +00:00
lambert-server: Remove unused jsonBody option
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user