Skip to content

Commit

Permalink
mongo repo err fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirollbas committed Dec 15, 2024
1 parent 3320e8a commit 4c8a3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/internal/pkg/repositories/mongo/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c8a3d7

Please sign in to comment.