formatted and remove response.json

This commit is contained in:
mario
2025-07-06 13:57:40 +07:00
parent 1ae1fd8f8a
commit 438370143a
11 changed files with 10989 additions and 1690 deletions

View File

@@ -1,21 +1,21 @@
import { readFileSync } from "fs";
interface IConfig {
base_url: string;
schedule: string[];
delay: number;
row_per_batch: number;
startDate: string;
endDate: string;
base_url: string;
schedule: string[];
delay: number;
row_per_batch: number;
startDate: string;
endDate: string;
}
const j_config = JSON.parse(readFileSync("./config-gw-wa.json").toString());
const config: IConfig = {
base_url: j_config["base_url"],
schedule: j_config["schedule"],
delay: j_config["delay"],
row_per_batch: j_config["row_per_batch"],
startDate: j_config["startDate"],
endDate: j_config["endDate"],
base_url: j_config["base_url"],
schedule: j_config["schedule"],
delay: j_config["delay"],
row_per_batch: j_config["row_per_batch"],
startDate: j_config["startDate"],
endDate: j_config["endDate"],
};
export default config;