Skip to content

Commit 42124a4

Browse files
committed
fix: var + unknown var
1 parent 3ccc206 commit 42124a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class AppService {
3434
}
3535
if (backend.active === 1){
3636
this.logger.log('Execute backend command '+ job.name +' '+ backend.name)
37-
var task=backend.actions[job.name]
37+
let task=backend.actions[job.name]
3838
this.logger.debug(backend.path +'/bin/'+ task.exec)
3939
const out=process.spawnSync(backend.path +'/bin/'+ task.exec,[],{
4040
input: JSON.stringify(job.data)
@@ -46,7 +46,7 @@ export class AppService {
4646
result.output=out.stdout.toString()
4747
result.error=out.stderr.toString()
4848
results.push(result);
49-
if (task.onError === 'stop' && output.status != 0 ){
49+
if (task.onError === 'stop' && out.status != 0 ){
5050
this.logger.log('stop on Error ')
5151
break
5252
}

0 commit comments

Comments
 (0)