Fix bug where a reupload does not change the author or the description
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@ -118,9 +118,6 @@ async function uploadPackage(ctx: ABC.Context) {
 | 
			
		||||
         };
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      packageMeta.author = meta.author;
 | 
			
		||||
      packageMeta.description = meta.description;
 | 
			
		||||
 | 
			
		||||
      const bucketBase = "packages/" + packageName + "/" + packageVersion + "/";
 | 
			
		||||
 | 
			
		||||
      console.log("Uploading files to S3");
 | 
			
		||||
@ -148,7 +145,11 @@ async function uploadPackage(ctx: ABC.Context) {
 | 
			
		||||
      await db.package.update(
 | 
			
		||||
         { name: packageName },
 | 
			
		||||
         {
 | 
			
		||||
            $set: { versions: [...packageMeta.versions, packageVersion] },
 | 
			
		||||
            $set: {
 | 
			
		||||
               versions: [...packageMeta.versions, packageVersion],
 | 
			
		||||
               author: meta.author || packageMeta.author,
 | 
			
		||||
               description: meta.description || packageMeta.description,
 | 
			
		||||
            },
 | 
			
		||||
         }
 | 
			
		||||
      );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user