docs: added missing date typecast in release script (#2409)

This commit is contained in:
Shahed Nasser
2022-10-11 10:43:40 +03:00
committed by GitHub
parent 14d4b9d95c
commit 78e7361f7e

View File

@@ -22,7 +22,7 @@ async function main () {
per_page: 1
})
if (commitResponse.data.length && dateDiffInDays(commitResponse.data[0].commit.committer.date, new Date()) < 6) {
if (commitResponse.data.length && dateDiffInDays(new Date(commitResponse.data[0].commit.committer.date), new Date()) < 6) {
console.log("File was edited less than 6 days ago. Expiry canceled.");
return;
}