Skip to content

Commit

Permalink
Merge pull request #104 from pinguo/ft_iter41_merge-mongodb
Browse files Browse the repository at this point in the history
add pipone
  • Loading branch information
pinguo-guzhongzhi authored Sep 23, 2024
2 parents b99ed51 + 465f4af commit 4667a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (m *Mongodb) UpsertIdCtx(ctx context.Context, id interface{}, replacement i
func handleOptions(query qmgo.QueryI, options ...bson.M) (qmgo.QueryI, error) {
opts := make(map[string]interface{})
for _, opt := range options {
if opt == nil {
if opt == nil || len(opt) == 0 {
continue
}
for k, v := range opt {
Expand Down

0 comments on commit 4667a6c

Please sign in to comment.