Browse Source

Fix migration of authors to clean up the old authors

Jordi Boggiano 5 years ago
parent
commit
26ae8c29af
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Packagist/WebBundle/Package/Updater.php

+ 1 - 0
src/Packagist/WebBundle/Package/Updater.php

@@ -275,6 +275,7 @@ class Updater
                 $version = $versionRepo->findOneById($existingVersion['id']);
 
                 $version->setAuthorJson($version->getAuthorData());
+                $version->getAuthors()->clear();
 
                 return ['updated' => true, 'id' => $version->getId(), 'version' => strtolower($normVersion), 'object' => $version];
             } else {