Don't hardcode dates into script
This commit is contained in:
parent
cc3186cb4a
commit
3f79b0c7cc
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ main();
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
// Use form of: YYYY-MM-DD - 2023-01-09
|
// Use form of: YYYY-MM-DD - 2023-01-09
|
||||||
const startDate = new Date("2023-01-01");
|
const startDate = new Date(process.argv[2]);
|
||||||
const today = new Date("2023-01-010")
|
const today = new Date()
|
||||||
|
|
||||||
console.log(`Changes from ${startDate} to ${today}\n`);
|
console.log(`Changes from ${startDate} to ${today}\n`);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue