Skip to content

Commit

Permalink
fix: unpublish version does not remove it from timeline
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
coolsp committed Jul 28, 2018
1 parent 374f0a8 commit 61e62bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/local-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 61e62bd

Please sign in to comment.