v0.6.3: bugfix for renewAt

This commit is contained in:
AJ ONeal 2019-10-29 06:22:32 +00:00
parent 51f0838539
commit c9eb5aef36
3 changed files with 7 additions and 7 deletions

View File

@ -277,13 +277,13 @@ Manage.create = function(opts) {
} }
manage.update = function(args) { manage.update = function(args) {
manage._txPromise = manage.txPromise.then(function() { manage._txPromise = manage._txPromise.then(function() {
return Manage._getLatest(manage, opts).then(function(config) { return Manage._getLatest(manage, opts).then(function(config) {
var site = config.sites[args.subject]; var site = config.sites[args.subject];
site.issuedAt = args.issuedAt; //site.issuedAt = args.issuedAt;
site.expiresAt = args.expiresAt; //site.expiresAt = args.expiresAt;
site.renewAt = args.renewAt; site.renewAt = args.renewAt;
// foo return manage._save(config);
}); });
}); });
return manage._txPromise; return manage._txPromise;
@ -293,7 +293,7 @@ Manage.create = function(opts) {
if (!args.subject) { if (!args.subject) {
throw new Error('should have a subject for sites to remove'); throw new Error('should have a subject for sites to remove');
} }
manage._txPromise = manage.txPromise.then(function() { manage._txPromise = manage._txPromise.then(function() {
return Manage._getLatest(manage, opts).then(function(config) { return Manage._getLatest(manage, opts).then(function(config) {
var site = config.sites[args.subject]; var site = config.sites[args.subject];
if (!site) { if (!site) {

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "greenlock-manager-fs", "name": "greenlock-manager-fs",
"version": "0.6.1", "version": "0.6.2",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "greenlock-manager-fs", "name": "greenlock-manager-fs",
"version": "0.6.1", "version": "0.6.2",
"description": "A simple file-based management strategy for Greenlock", "description": "A simple file-based management strategy for Greenlock",
"main": "manager.js", "main": "manager.js",
"scripts": { "scripts": {