Skip to content

Commit 7e1588e

Browse files
committed
Added dynamic env_config creation statement
1 parent 06ec2ca commit 7e1588e

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

API/fetchRepoApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const fs = require("fs");
2-
const dotnev = require("dotenv").config();
32
const path = require("path");
43

54
function getEnvData() {

API/settingsApi.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ const fetchRepoDetails = async () => {
5757
});
5858
};
5959

60-
const deleteRepo = async (repoId) => {
61-
return await fs.promises.readFile(getEnvData().DATABASE_FILE).then((res) => {
62-
console.log(res);
63-
});
64-
};
65-
6660
const updateDbFile = async (newFileName) => {
6761
console.log("FILE NAME : ", newFileName);
6862

@@ -132,6 +126,5 @@ const updatePortDetails = async (newPort) => {
132126
module.exports.updateDbFile = updateDbFile;
133127
module.exports.fetchDatabaseFile = fetchDatabaseFile;
134128
module.exports.fetchRepoDetails = fetchRepoDetails;
135-
module.exports.deleteRepo = deleteRepo;
136129
module.exports.updatePortDetails = updatePortDetails;
137130
module.exports.getPortDetails = getPortDetails;

global/fetchGitRepoPath.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const fs = require("fs");
22
const path = require("path");
3-
const dotenv = require("dotenv").config();
43

54
function getEnvData() {
65
const envFileData = fs.readFileSync(

0 commit comments

Comments
 (0)