Skip to content

Commit

Permalink
Merge branch 'feature/bulk-roi-bugs' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanStonebraker committed Apr 17, 2024
2 parents f86e57a + ec634f1 commit eac7952
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api/ws/handlers/roi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package wsHandler
import (
"context"
"errors"
"fmt"

"github.com/getsentry/sentry-go"
"github.com/pixlise/core/v4/api/dbCollections"
"github.com/pixlise/core/v4/api/ws/wsHelpers"
"github.com/pixlise/core/v4/core/errorwithstatus"
Expand Down Expand Up @@ -102,10 +104,11 @@ func HandleRegionOfInterestListReq(req *protos.RegionOfInterestListReq, hctx wsH
mistItem := &protos.MistROIItem{}
err = hctx.Svcs.MongoDB.Collection(dbCollections.MistROIsName).FindOne(context.TODO(), bson.D{{Key: "_id", Value: item.Id}}).Decode(&mistItem)
if err != nil {
return nil, err
fmt.Printf("Error decoding MIST ROI item (%v) during listing: %v\n", item.Id, err)
sentry.CaptureMessage(fmt.Sprintf("Error decoding MIST ROI item (%v) during listing: %v\n", item.Id, err))
} else {
item.MistROIItem = mistItem
}

item.MistROIItem = mistItem
}

// Look up display settings and add to item if found (otherwise leave nil)
Expand Down

0 comments on commit eac7952

Please sign in to comment.