mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-21 16:38:41 -06:00
SDA-1942: skip setting expiry if value is 0 (#966)
Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
This commit is contained in:
parent
44428bd52c
commit
45f3a2f33e
@ -53,6 +53,12 @@ gulp.task('copy', function () {
|
||||
gulp.task('setExpiry', function (done) {
|
||||
// Set expiry of 15 days for test builds we create from CI
|
||||
const expiryDays = process.argv[4] || 15;
|
||||
if (expiryDays < 1) {
|
||||
console.log(`Not setting expiry as the value provided is ${expiryDays}`);
|
||||
done();
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(`Setting expiry to ${expiryDays} days`);
|
||||
const milliseconds = 24*60*60*1000;
|
||||
const expiryTime = new Date().getTime() + (expiryDays * milliseconds);
|
||||
|
Loading…
Reference in New Issue
Block a user