Skip to content

Commit

Permalink
chore: reanme config variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kailashchoudhary11 committed Jun 10, 2024
1 parent aac8a74 commit 5105afe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/app.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
db_config: {
dbConfig: {
PATH: "/tmp/database.db",
}
}
4 changes: 2 additions & 2 deletions services/code.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const supportedLanguages = require('../enums/supportedLanguages')
const { default: axios } = require('axios')
const { generate } = require('@builder.io/sqlgenerate')
const parser = require('sqlite-parser')
const { db_config } = require('../configs/app.config')
const { dbConfig } = require('../configs/app.config')

const _runScript = async (cmd, res, runMemoryCheck = false) => {
let initialMemory = 0
Expand Down Expand Up @@ -457,7 +457,7 @@ const _downloadSqliteDatabase = async (fileUrl, dbPath) => {
}

const _executeSqlite3Query = async (req, res, response) => {
const dbPath = db_config.PATH
const dbPath = dbConfig.PATH
try {
const dbDirectory = path.dirname(dbPath)
if (!fs.existsSync(dbDirectory)) {
Expand Down

0 comments on commit 5105afe

Please sign in to comment.