We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ccc206 commit 42124a4Copy full SHA for 42124a4
src/app.service.ts
@@ -34,7 +34,7 @@ export class AppService {
34
}
35
if (backend.active === 1){
36
this.logger.log('Execute backend command '+ job.name +' '+ backend.name)
37
- var task=backend.actions[job.name]
+ let task=backend.actions[job.name]
38
this.logger.debug(backend.path +'/bin/'+ task.exec)
39
const out=process.spawnSync(backend.path +'/bin/'+ task.exec,[],{
40
input: JSON.stringify(job.data)
@@ -46,7 +46,7 @@ export class AppService {
46
result.output=out.stdout.toString()
47
result.error=out.stderr.toString()
48
results.push(result);
49
- if (task.onError === 'stop' && output.status != 0 ){
+ if (task.onError === 'stop' && out.status != 0 ){
50
this.logger.log('stop on Error ')
51
break
52
0 commit comments