1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-12 22:29:59 +08:00
Elsio Sanchez fdc81386fc
Bugfix/procces error (#540)
* Correcting errors in the processes and reports
The process was successful but it was throwing undefined Uuid error

* delete console.log

Co-authored-by: elsiosanchez <elsiosanches@gmial.com>
2020-11-11 17:49:29 -04:00

20 lines
756 B
JavaScript

import { isEmptyValue } from '../valueUtils.js'
import { convertReportOutput } from './report.js'
export function convertProcessLog(processLogToConvert) {
return {
uuid: processLogToConvert.uuid,
instanceUuid: processLogToConvert.instance_uuid,
isError: processLogToConvert.is_error,
summary: processLogToConvert.summary,
resultTableName: processLogToConvert.result_table_name,
isProcessing: processLogToConvert.is_processing,
lastRun: processLogToConvert.last_run,
// parametersList: processLogToConvert.parameter.map(parameter => {
// return convertEntity(parameter)
// }),
paramenters: [],
output: isEmptyValue(processLogToConvert.output) ? {} : convertReportOutput(processLogToConvert.output)
}
}