Skip to content

Commit

Permalink
chore(backend): remove unneeded statements
Browse files Browse the repository at this point in the history
  • Loading branch information
detj committed Nov 28, 2023
1 parent ccd9070 commit 32dc8d1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions measure-backend/measure-go/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 32dc8d1

Please sign in to comment.