pangea-server 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ const multer_1 = __importDefault(require("multer"));
|
|
|
8
8
|
// helpers
|
|
9
9
|
const helpers_1 = require("../helpers");
|
|
10
10
|
const invalidInputDataError = new helpers_1.AppError({ statusCodeName: 'BAD_REQUEST', errorCode: 'INVALID_INPUT_DATA' });
|
|
11
|
-
const storage = multer_1.default.
|
|
11
|
+
const storage = multer_1.default.diskStorage({});
|
|
12
12
|
exports.processImage = getProcessFn({ method: 'single', field: 'image', types: ['image'] });
|
|
13
13
|
exports.processImages = getProcessFn({ method: 'array', field: 'images', types: ['image'] });
|
|
14
14
|
exports.processVideo = getProcessFn({ method: 'single', field: 'video', types: ['video'] });
|