Skip to content

Commit

Permalink
Merge pull request #49 from kalviumcommunity/fix/code-service
Browse files Browse the repository at this point in the history
fix: path variable re declaration
  • Loading branch information
kailashchoudhary11 authored Jun 12, 2024
2 parents 4105c04 + fd2beb3 commit 6b3da49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/code.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const puppeteer = require('puppeteer');
const express = require('express')
const http = require('http')
const { spawn } = require('child_process');
const path = require('path')
const appConfig = require('../configs/app.config.js')
const { FRONTEND_STATIC_JASMINE } = require('../enums/supportedMultifileSetupTypes.js')
const axios = require('axios')
Expand Down Expand Up @@ -517,7 +516,7 @@ const execute = async (req, res) => {
success: [],
failed: [],
}
await _executeMultiFile(req, res, response)
await _executeMultiFile(req, res, response)
} else if (req.language === supportedLanguages.SQLITE3) {
await _executeSqlite3Query(req, res, response)
} else {
Expand Down Expand Up @@ -837,7 +836,7 @@ const _executeMultiFile = async (req, res, response) => {
await _cleanUpDir(appConfig.multifile.workingDir, appConfig.multifile.submissionFileDownloadPath)
response.output = jasmineResults
} catch (err) {
if(err.message === 'No package.json found' || err.message.includes('Browser was not found at')) {
if (err.message === 'No package.json found' || err.message.includes('Browser was not found at')) {
throw err
} else {
// respond with empty success and failed array
Expand Down

0 comments on commit 6b3da49

Please sign in to comment.