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
}