File tree Expand file tree Collapse file tree 3 files changed +0
-9
lines changed Expand file tree Collapse file tree 3 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 1
1
const fs = require ( "fs" ) ;
2
- const dotnev = require ( "dotenv" ) . config ( ) ;
3
2
const path = require ( "path" ) ;
4
3
5
4
function getEnvData ( ) {
Original file line number Diff line number Diff line change @@ -57,12 +57,6 @@ const fetchRepoDetails = async () => {
57
57
} ) ;
58
58
} ;
59
59
60
- const deleteRepo = async ( repoId ) => {
61
- return await fs . promises . readFile ( getEnvData ( ) . DATABASE_FILE ) . then ( ( res ) => {
62
- console . log ( res ) ;
63
- } ) ;
64
- } ;
65
-
66
60
const updateDbFile = async ( newFileName ) => {
67
61
console . log ( "FILE NAME : " , newFileName ) ;
68
62
@@ -132,6 +126,5 @@ const updatePortDetails = async (newPort) => {
132
126
module . exports . updateDbFile = updateDbFile ;
133
127
module . exports . fetchDatabaseFile = fetchDatabaseFile ;
134
128
module . exports . fetchRepoDetails = fetchRepoDetails ;
135
- module . exports . deleteRepo = deleteRepo ;
136
129
module . exports . updatePortDetails = updatePortDetails ;
137
130
module . exports . getPortDetails = getPortDetails ;
Original file line number Diff line number Diff line change 1
1
const fs = require ( "fs" ) ;
2
2
const path = require ( "path" ) ;
3
- const dotenv = require ( "dotenv" ) . config ( ) ;
4
3
5
4
function getEnvData ( ) {
6
5
const envFileData = fs . readFileSync (
You can’t perform that action at this time.
0 commit comments