From 41fb13c330de629df2d23379209e79c7af0f2e9a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Aug 2021 14:32:44 +0200 Subject: esModuleInterop to true --- server/helpers/express-utils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/helpers/express-utils.ts') diff --git a/server/helpers/express-utils.ts b/server/helpers/express-utils.ts index c299b70f1..38fe6926b 100644 --- a/server/helpers/express-utils.ts +++ b/server/helpers/express-utils.ts @@ -1,5 +1,5 @@ -import * as express from 'express' -import * as multer from 'multer' +import express from 'express' +import multer, { diskStorage } from 'multer' import { HttpStatusCode } from '../../shared/models/http/http-error-codes' import { CONFIG } from '../initializers/config' import { REMOTE_SCHEME } from '../initializers/constants' @@ -70,7 +70,7 @@ function createReqFiles ( mimeTypes: { [id: string]: string | string[] }, destinations: { [fieldName: string]: string } ) { - const storage = multer.diskStorage({ + const storage = diskStorage({ destination: (req, file, cb) => { cb(null, destinations[file.fieldname]) }, -- cgit v1.2.3