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._txPromise = manage.txPromise.then(function() {
|
||||
manage._txPromise = manage._txPromise.then(function() {
|
||||
return Manage._getLatest(manage, opts).then(function(config) {
|
||||
var site = config.sites[args.subject];
|
||||
site.issuedAt = args.issuedAt;
|
||||
site.expiresAt = args.expiresAt;
|
||||
//site.issuedAt = args.issuedAt;
|
||||
//site.expiresAt = args.expiresAt;
|
||||
site.renewAt = args.renewAt;
|
||||
// foo
|
||||
return manage._save(config);
|
||||
});
|
||||
});
|
||||
return manage._txPromise;
|
||||
|
@ -293,7 +293,7 @@ Manage.create = function(opts) {
|
|||
if (!args.subject) {
|
||||
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) {
|
||||
var site = config.sites[args.subject];
|
||||
if (!site) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "greenlock-manager-fs",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "greenlock-manager-fs",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.2",
|
||||
"description": "A simple file-based management strategy for Greenlock",
|
||||
"main": "manager.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue