refactor: Some path refactoring
This commit is contained in:
@@ -253,7 +253,7 @@ export default async function parseV1V2(downloadedFilePath: string) {
|
||||
}
|
||||
}
|
||||
|
||||
fs.writeFileSync("db/v2.json", JSON.stringify(data, null, 2));
|
||||
fs.writeFileSync("volume/db/v2.json", JSON.stringify(data, null, 2));
|
||||
|
||||
// Modify the data for v1
|
||||
const copy = JSON.parse(JSON.stringify(data));
|
||||
@@ -275,7 +275,7 @@ export default async function parseV1V2(downloadedFilePath: string) {
|
||||
});
|
||||
});
|
||||
|
||||
fs.writeFileSync("db/v1.json", JSON.stringify(copy, null, 2))
|
||||
fs.writeFileSync("volume/db/v1.json", JSON.stringify(copy, null, 2))
|
||||
}
|
||||
|
||||
//parseV1V2("db/current.xlsx")
|
||||
|
||||
@@ -147,7 +147,7 @@ export default async function parseV3(downloadedFilePath: string) {
|
||||
schedule,
|
||||
};
|
||||
|
||||
fs.writeFileSync("db/v3.json", JSON.stringify(data, null, 2));
|
||||
fs.writeFileSync("volume/db/v3.json", JSON.stringify(data, null, 2));
|
||||
}
|
||||
|
||||
//
|
||||
@@ -424,4 +424,4 @@ function formatNowTime() {
|
||||
);
|
||||
}
|
||||
|
||||
parseV3("db/current.xlsx")
|
||||
//parseV3("db/current.xlsx")
|
||||
|
||||
Reference in New Issue
Block a user