fix: i missed one path
This commit is contained in:
		
							parent
							
								
									bf34c77269
								
							
						
					
					
						commit
						23f79b0fec
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -80,7 +80,7 @@ func (db *DB) WriteUserAvatar(ctx context.Context,
 | 
			
		|||
	}
 | 
			
		||||
	hash = hex.EncodeToString(hasher.Sum(nil))
 | 
			
		||||
 | 
			
		||||
	_, err = db.minio.PutObject(ctx, db.minioBucket, "/users/"+userID.String()+"/"+hash+".webp", webp, -1, minio.PutObjectOptions{
 | 
			
		||||
	_, err = db.minio.PutObject(ctx, db.minioBucket, "users/"+userID.String()+"/"+hash+".webp", webp, -1, minio.PutObjectOptions{
 | 
			
		||||
		ContentType:    "image/webp",
 | 
			
		||||
		SendContentMd5: true,
 | 
			
		||||
	})
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@ func (db *DB) WriteUserAvatar(ctx context.Context,
 | 
			
		|||
		return "", errors.Wrap(err, "uploading webp avatar")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	_, err = db.minio.PutObject(ctx, db.minioBucket, "/users/"+userID.String()+"/"+hash+".jpg", jpeg, -1, minio.PutObjectOptions{
 | 
			
		||||
	_, err = db.minio.PutObject(ctx, db.minioBucket, "users/"+userID.String()+"/"+hash+".jpg", jpeg, -1, minio.PutObjectOptions{
 | 
			
		||||
		ContentType:    "image/jpeg",
 | 
			
		||||
		SendContentMd5: true,
 | 
			
		||||
	})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue