v0.6.3: bugfix for renewAt
This commit is contained in:
parent
51f0838539
commit
c9eb5aef36
10
manager.js
10
manager.js
|
@ -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) {
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue