Skip to content

Commit

Permalink
Merge pull request #107 from pinguo/ft_iter41_merge-mongodb
Browse files Browse the repository at this point in the history
code for findAndModify
  • Loading branch information
pinguo-guzhongzhi authored Sep 25, 2024
2 parents 283693f + eb49096 commit 1f38d6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adapter/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ func (m *Mongodb) FindAndModify(query interface{}, change qmgo.Change, result in
m.Context().ProfileStart(profile)
defer m.Context().ProfileStop(profile)
ctx := context.Background()
q := m.Collection.Find(ctx, query)
col := m.client.MClient.Database(m.db).Collection(m.coll)
q := col.Find(ctx, query)
q, err := handleOptions(q, options...)
if err != nil {
return err
Expand Down

0 comments on commit 1f38d6f

Please sign in to comment.