0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

Merge pull request #863 from coolsp/fix-unpublish-timeline

fix: unpublish version does not remove it from timeline
This commit is contained in:
Juan Picado @jotadeveloper 2018-07-28 17:16:30 +02:00 committed by GitHub
commit 61e4e56a76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {