From 48851d422a31b4ac4d9e30ac56bb0cc60fe670c4 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 16 Apr 2021 13:46:51 +0200 Subject: [PATCH] Fix deprecated use of bodyParser. --- server/lib/routers/webchat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/routers/webchat.ts b/server/lib/routers/webchat.ts index b9eb3d48..3d54f9d5 100644 --- a/server/lib/routers/webchat.ts +++ b/server/lib/routers/webchat.ts @@ -2,7 +2,7 @@ import type { Router, RequestHandler, Request, Response, NextFunction } from 'ex import type { ProxyOptions } from 'express-http-proxy' import { getBaseRouter } from '../helpers' import * as path from 'path' -import * as bodyParser from 'body-parser' +const bodyParser = require('body-parser') const fs = require('fs').promises const proxy = require('express-http-proxy')