From 8bf9d72fe2a1bba8652bbb5ac25444140fedd3f6 Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Mon, 18 Nov 2024 14:44:22 +0530 Subject: [PATCH] TP-5555 | last seen support --- service/sourceMap.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/service/sourceMap.go b/service/sourceMap.go index a9c6ffc..85bb0db 100644 --- a/service/sourceMap.go +++ b/service/sourceMap.go @@ -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, })