From 40fec526e1aa676812dfba1891dab538aeb31451 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 3 Nov 2019 00:36:22 -0600 Subject: [PATCH] v3.0.4: don't re-remove removed sites --- manager.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manager.js b/manager.js index da3f4eb..aba537d 100644 --- a/manager.js +++ b/manager.js @@ -228,7 +228,7 @@ Manage.create = function(CONF) { manage._txPromise = manage._txPromise.then(async function() { var config = await Manage._getLatest(manage, CONF); var site = config.sites[args.subject]; - if (!site) { + if (!site || site.deletedAt) { return null; } site.deletedAt = Date.now(); diff --git a/package-lock.json b/package-lock.json index a8ee0ec..3faa2ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "greenlock-manager-fs", - "version": "3.0.2", + "version": "3.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 19a113b..70f557d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock-manager-fs", - "version": "3.0.3", + "version": "3.0.4", "description": "A simple file-based management strategy for Greenlock", "main": "manager.js", "scripts": {