From 61e62bdeb573f3837ecfde7f5d407cd8ccba773e Mon Sep 17 00:00:00 2001 From: Peter Cools Date: Sat, 28 Jul 2018 12:41:19 +0200 Subject: [PATCH] fix: unpublish version does not remove it from timeline Unpublishing a specific module version does not remove that version from the local-storage (package.json) "time" object. This results in the version still being shown in the webui right-pane "Last Sync". Added delete of the time[ver] object when module version is removed. --- src/lib/local-storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/local-storage.js b/src/lib/local-storage.js index 4b45c62e0..216e2e63d 100644 --- a/src/lib/local-storage.js +++ b/src/lib/local-storage.js @@ -333,6 +333,7 @@ class LocalStorage implements IStorage { this.logger.info( {name: name, version: ver}, 'unpublishing @{name}@@{version}'); delete jsonData.versions[ver]; + delete jsonData.time[ver]; for (let file in jsonData._attachments) { if (jsonData._attachments[file].version === ver) {