Skip to content

Commit 61e62bd

Browse files
committed
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.
1 parent 374f0a8 commit 61e62bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/local-storage.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ class LocalStorage implements IStorage {
333333
this.logger.info( {name: name, version: ver}, 'unpublishing @{name}@@{version}');
334334

335335
delete jsonData.versions[ver];
336+
delete jsonData.time[ver];
336337

337338
for (let file in jsonData._attachments) {
338339
if (jsonData._attachments[file].version === ver) {

0 commit comments

Comments
 (0)