From 4c8a3d7904808e268761c684d727f1132c569ed4 Mon Sep 17 00:00:00 2001 From: Kirollbas Date: Sun, 15 Dec 2024 21:50:40 +0300 Subject: [PATCH] mongo repo err fix --- backend/internal/pkg/repositories/mongo/insert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/pkg/repositories/mongo/insert.go b/backend/internal/pkg/repositories/mongo/insert.go index dfc3d77..fb0c331 100644 --- a/backend/internal/pkg/repositories/mongo/insert.go +++ b/backend/internal/pkg/repositories/mongo/insert.go @@ -11,7 +11,7 @@ func (r *Repository) Insert(ctx context.Context, dataStr string) error { data := bson.M{} err := bson.UnmarshalExtJSON([]byte(dataStr), true, &data) if err != nil { - return fmt.Errorf("unable to parse data to mongo insert. Err: %w", err) + return fmt.Errorf("[mongo] unable to parse data to mongo insert. Err: %w", err) } db := r.client.Database(r.databaseName)