Skip to content

Commit

Permalink
task-queue-worker: bugfix command to get mongo version
Browse files Browse the repository at this point in the history
  • Loading branch information
harissudrajat authored and agungdwiprasetyo committed May 30, 2024
1 parent b9ce49e commit 3bebb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codebase/app/task_queue_worker/persistent_mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ func (s *MongoPersistent) Type() string {
var commandResult struct {
Version string `bson:"version"`
}
err := s.db.RunCommand(s.ctx, bson.D{{Key: "serverStatus", Value: 1}}).Decode(&commandResult)
err := s.db.RunCommand(s.ctx, bson.D{{Key: "buildInfo", Value: 1}}).Decode(&commandResult)
logger.LogIfError(err)
if commandResult.Version != "" {
commandResult.Version = ", version: " + commandResult.Version
Expand Down

0 comments on commit 3bebb65

Please sign in to comment.