From e9e06118acaa05e137b759c27d43efce5de5dbb2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 7 Mar 2019 23:14:01 +0900 Subject: [PATCH] Fix import --- src/server/proxy/proxy-media.ts | 2 +- src/services/drive/add-file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/proxy/proxy-media.ts b/src/server/proxy/proxy-media.ts index 379dc1f84..842dbff29 100644 --- a/src/server/proxy/proxy-media.ts +++ b/src/server/proxy/proxy-media.ts @@ -3,7 +3,7 @@ import * as URL from 'url'; import * as tmp from 'tmp'; import * as Koa from 'koa'; import * as request from 'request'; -import * as fileType from 'file-type'; +import fileType from 'file-type'; import { serverLogger } from '..'; import config from '../../config'; import { IImage, ConvertToPng } from '../../services/drive/image-processor'; diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index 5b082a4fa..0938b1841 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -6,7 +6,7 @@ import * as crypto from 'crypto'; import * as Minio from 'minio'; import * as uuid from 'uuid'; import * as sharp from 'sharp'; -import * as fileType from 'file-type'; +import fileType from 'file-type'; import DriveFile, { IMetadata, getDriveFileBucket, IDriveFile } from '../../models/drive-file'; import DriveFolder from '../../models/drive-folder';