Skip to content

Commit

Permalink
fix: use default value
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Jul 24, 2024
1 parent 1020ba0 commit 11bd226
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/repository/sequence/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func (r *MongoRepository) GetNextExecutionNumber(ctx context.Context, name strin
}

opts := options.FindOneAndUpdate()
opts.SetUpsert(false)
opts.SetReturnDocument(options.After)

err = r.Coll.FindOneAndUpdate(ctx, bson.M{"_id": id}, bson.M{"$inc": bson.M{"number": 1}}, opts).Decode(&executionNumber)
Expand Down

0 comments on commit 11bd226

Please sign in to comment.