From 32dc8d14d3849daf386cecbf050efdd887b90a59 Mon Sep 17 00:00:00 2001 From: Debjeet Biswas Date: Wed, 29 Nov 2023 04:30:41 +0530 Subject: [PATCH] chore(backend): remove unneeded statements --- measure-backend/measure-go/teams.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/measure-backend/measure-go/teams.go b/measure-backend/measure-go/teams.go index 023e493e1..0eaa0b5e7 100644 --- a/measure-backend/measure-go/teams.go +++ b/measure-backend/measure-go/teams.go @@ -188,17 +188,6 @@ func getTeamApp(c *gin.Context) { c.JSON(http.StatusNotFound, gin.H{"error": msg}) return } - // if err := server.PgPool.QueryRow(context.Background(), "select id, app_name, team_id, unique_identifier, platform, first_version, latest_version, first_seen_at, created_at, updated_at from apps where id = $1", appId).Scan(&a.ID, &a.AppName, &a.TeamId, &a.UniqueId, &a.Platform, &a.firstVersion, &a.latestVersion, &a.firstSeenAt, &a.CreatedAt, & a.UpdatedAt); err != nil { - // if errors.Is(err, pgx.ErrNoRows) { - // // - // } else { - // // - // } - // msg := fmt.Sprintf("failed to fetch app with id %s", appId) - // fmt.Println(msg, err) - // c.JSON(http.StatusInternalServerError, gin.H{"error": msg}) - // return - // } c.JSON(http.StatusOK, &a) }