TP-5555 | last seen support
This commit is contained in:
@@ -61,16 +61,16 @@ func (s *SourceMapService) GetSourceMapUploadUrl(ctx *gin.Context) {
|
||||
return
|
||||
}
|
||||
// save state in database
|
||||
result := *s.dbClient.Create(&db.SourceMap{
|
||||
ProjectReferenceId: projectId,
|
||||
ReleaseReferenceId: releaseId,
|
||||
FileName: fileName,
|
||||
State: "IN_PROGRESS",
|
||||
})
|
||||
if result.Error != nil {
|
||||
ctx.JSON(http.StatusInternalServerError, gin.H{"error": result.Error.Error(), "message": "Failed to source map"})
|
||||
return
|
||||
}
|
||||
//result := *s.dbClient.Create(&db.SourceMap{
|
||||
// ProjectReferenceId: projectId,
|
||||
// ReleaseReferenceId: releaseId,
|
||||
// FileName: fileName,
|
||||
// State: "IN_PROGRESS",
|
||||
//})
|
||||
//if result.Error != nil {
|
||||
// ctx.JSON(http.StatusInternalServerError, gin.H{"error": result.Error.Error(), "message": "Failed to source map"})
|
||||
// return
|
||||
//}
|
||||
ctx.JSON(http.StatusOK, gin.H{
|
||||
"url": request.URL,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user