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