From d1aea7596cb8e1628aede5d202b3971a07acb692 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 379dc1f842..842dbff29e 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 5b082a4fa4..0938b18415 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';