TP-55555 | source map and release fix
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user