Small fix

This commit is contained in:
mimiza 2020-10-27 15:44:45 +07:00 committed by GitHub
parent 5d755af301
commit 04bbfdd2eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
sea.js
View File

@ -690,7 +690,7 @@
const data = JSON.stringify({
c: certificants,
p: patterns,
...(opt?.expiry && typeof opt.expiry === 'number' ? {e: opt.expiry} : {}) // inject expiry if possible
...(opt.expiry && typeof opt.expiry === 'number' ? {e: opt.expiry} : {}) // inject expiry if possible
})
const certificate = await SEA.sign(data, issuer, null, {raw:1})