fixed doc env vars + mongo v2 migration
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
fxv1 "github.com/tech/sendico/pkg/proto/common/fx/v1"
|
||||
moneyv1 "github.com/tech/sendico/pkg/proto/common/money/v1"
|
||||
oraclev1 "github.com/tech/sendico/pkg/proto/oracle/v1"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
)
|
||||
|
||||
type quoteComputation struct {
|
||||
@@ -179,7 +179,7 @@ func buildQuoteMeta(meta *oraclev1.RequestMeta) *model.QuoteMeta {
|
||||
qm.IdempotencyKey = strings.TrimSpace(trace.GetIdempotencyKey())
|
||||
}
|
||||
if org := strings.TrimSpace(meta.GetOrganizationRef()); org != "" {
|
||||
if objID, err := primitive.ObjectIDFromHex(org); err == nil {
|
||||
if objID, err := bson.ObjectIDFromHex(org); err == nil {
|
||||
qm.SetOrganizationRef(objID)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user