Skip to content

Commit

Permalink
fix(backend): use correct column name in query to get mapping key
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaysood committed Nov 18, 2023
1 parent 55d9f63 commit e01bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion measure-backend/measure-go/sessions.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (s *Session) known(id uuid.UUID) (bool, error) {

func (s *Session) getMappingKey() (string, error) {
var key string
if err := server.pgPool.QueryRow(context.Background(), `select key from mapping_files where app_id = $1 and version_name = $2 and version_code = $3 and mapping_type = 'proguard' limit 1;`, s.Resource.AppUniqueID, s.Resource.AppVersion, s.Resource.AppBuild).Scan(&key); err != nil {
if err := server.pgPool.QueryRow(context.Background(), `select key from mapping_files where app_unique_id = $1 and version_name = $2 and version_code = $3 and mapping_type = 'proguard' limit 1;`, s.Resource.AppUniqueID, s.Resource.AppVersion, s.Resource.AppBuild).Scan(&key); err != nil {
if errors.Is(err, pgx.ErrNoRows) {
return "", nil
}
Expand Down

0 comments on commit e01bf57

Please sign in to comment.