Skip to content

Commit

Permalink
fix show time when run adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Mar 20, 2024
1 parent 57eb97e commit eb9af72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/testAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const passedFile = path.resolve(process.cwd(), `./${adapterType}/${process.argv[
endTimestamp = (process.argv[4] ? Number(process.argv[4]) : getTimestamp30MinutesAgo()) // 1 day;
}

const runAt = adapterVersion === 2 ? endTimestamp : endTimestamp - 1;
const runAt = adapterVersion === 2 ? endTimestamp : process.argv[4] ? Number(process.argv[4]) : endTimestamp - 1;
console.info(`${upperCaseFirst(adapterType)} for ${formatTimestampAsDate(String(getUniqStartOfTodayTimestamp(new Date((runAt * 1000)))))}`)
console.info(`_______________________________________\n`)

Expand Down

0 comments on commit eb9af72

Please sign in to comment.