Merge branch 'master' of wopr.rodax-software.com:lqdvi/app2-api
This commit is contained in:
commit
ffbbeba404
@ -19,13 +19,8 @@ const extraControllers = {
|
|||||||
var file = req.file;
|
var file = req.file;
|
||||||
var data = req.body;
|
var data = req.body;
|
||||||
|
|
||||||
//var CDNFilePath = cdnHelper.getCDNFilenameWithPath(file.originalname, 'speaker');
|
|
||||||
//console.log('CDNFilePath', CDNFilePath);
|
|
||||||
|
|
||||||
const context = buildContext(req, config);
|
const context = buildContext(req, config);
|
||||||
console.log(context);
|
console.log(data, context);
|
||||||
|
|
||||||
//await multimediaFileService.uploadFile(file, CDNFilePath, data, context);
|
|
||||||
|
|
||||||
const result = await multimediaService.create(data, context);
|
const result = await multimediaService.create(data, context);
|
||||||
return handleResultResponse(result, null, null, res, httpStatus.CREATED)
|
return handleResultResponse(result, null, null, res, httpStatus.CREATED)
|
||||||
|
|||||||
@ -103,14 +103,14 @@ const extraMethods = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
beforeCreate: function(values, context) {
|
beforeCreate: function(values, context) {
|
||||||
if (values.provider != 'cdn') {
|
/*if (values.provider != 'cdn') {
|
||||||
var info = determineProviderInfo(values.url);
|
var info = determineProviderInfo(values.url);
|
||||||
|
|
||||||
values.provider = info.provider;
|
values.provider = info.provider;
|
||||||
values.code = info.code;
|
values.code = info.code;
|
||||||
values.class = info.class;
|
values.class = info.class;
|
||||||
}
|
}*/
|
||||||
|
console.log(values);
|
||||||
return values;
|
return values;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user