TP-55555 | source map and release fix

This commit is contained in:
varnit goyal
2024-10-13 13:43:56 +05:30
parent a741af7c9c
commit 18ea9d1225
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ func (releaseService *ReleaseService) AddRelease(c *gin.Context) {
}
if result := releaseService.dbClient.Create(&releaseToBeAdded); result.Error != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": result.Error.Error()})
c.JSON(http.StatusOK, gin.H{"Release already exist please move ahead": result.Error.Error()})
return
}

View File

@@ -47,7 +47,7 @@ func (s *SourceMapService) GetSourceMapUploadUrl(ctx *gin.Context) {
}
//generate s3 pre-signed url
key := path.Join(projectId, releaseId, fileName)
key := path.Join("source-map-cache", projectId, releaseId, fileName)
bucket := s.awsConfig.Bucket
request, err := s.s3Client.S3PresignClient.PresignPutObject(context.TODO(), &s3.PutObjectInput{
Bucket: &bucket,