docs: added missing date typecast in release script (#2409)
This commit is contained in:
1 parent
14d4b9d95c
commit
78e7361f7e
1 file changed
+1
-1
@@ -22,7 +22,7 @@ async function main () {
|
|||||||
per_page: 1
|
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.");
|
console.log("File was edited less than 6 days ago. Expiry canceled.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user