瀏覽代碼

Fix test error

rigwild 6 年之前
父節點
當前提交
ad1b2ef9f6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      server/routes/getImageExtracts.js

+ 2 - 2
server/routes/getImageExtracts.js

@@ -8,14 +8,14 @@ import boom from 'boom'
 
 import { asyncMiddleware, checkSceneName, checkRequiredParameters } from '../functions'
 import { imageServedUrl, imagesPath, extractsDirName } from '../../config'
-import { getImage, Image } from './getImage' // eslint-disable-line no-unused-vars
+import { getImage } from './getImage'
 
 const router = express.Router()
 
 /**
  * Cut an image, save its extracts and get the url of these extracts
  *
- * @param {Image} image the path to the image to cut
+ * @param {object} image the path to the image to cut
  * @param {Number} xExtracts the number of extract to do on the horizontal axis (integer)
  * @param {Number} yExtracts the number of extract to do on the vertical axis (integer)
  * @returns {Promise<Image[]>} the list of extracted images