From 2a821a7c57f1f51faeeead0642d4380d35063618 Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Tue, 13 Jun 2023 16:30:13 +0300
Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?=
 =?UTF-8?q?=D0=BE=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2?=
 =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=8D=D0=BA=D1=81=D0=BF=D0=B5=D1=80?=
 =?UTF-8?q?=D0=B8=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE?=
 =?UTF-8?q?=D0=B3=D0=BE=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0=20(bsonx)?=
 =?UTF-8?q?=20=D0=BD=D0=B0=20=D1=81=D1=82=D0=B0=D0=BD=D0=B4=D0=B0=D1=80?=
 =?UTF-8?q?=D1=82=D0=BD=D1=8B=D0=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pkg/filter/filter.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/filter/filter.go b/pkg/filter/filter.go
index ea2f1d43..04ebf36d 100644
--- a/pkg/filter/filter.go
+++ b/pkg/filter/filter.go
@@ -12,7 +12,7 @@ import (
 	"github.com/hashicorp/go-multierror"
 	"github.com/mitchellh/mapstructure"
 	"go.mongodb.org/mongo-driver/bson"
-	"go.mongodb.org/mongo-driver/x/bsonx"
+	"go.mongodb.org/mongo-driver/bson/primitive"
 )
 
 type Op string
@@ -326,7 +326,7 @@ func (b *mongoQueryBuilder) query(f *Filter) bson.M {
 		val, _ := f.Value.(string)
 		return bson.M{
 			b.field(f.Field): bson.M{
-				b.getOp(f.Op): bsonx.Regex(val, ""),
+				b.getOp(f.Op): primitive.Regex{Pattern: val},
 			},
 		}
 
-- 
GitLab