Skip to content

Commit 5f8d92d

Browse files
lu-zhengdatlhunter
andauthored
Update index.js
Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
1 parent 470722f commit 5f8d92d

File tree

1 file changed

+1
-1
lines changed
  • packages/datadog-plugin-mongodb-core/src

1 file changed

+1
-1
lines changed

packages/datadog-plugin-mongodb-core/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class MongodbCorePlugin extends DatabasePlugin {
5151
// if the command already has a comment, append the dbm trace comment
5252
if (typeof dbmTracedCommand.comment === 'string') {
5353
dbmTracedCommand.comment += `,${dbmTraceComment}`
54-
} else if (Array.isArray(command.comment)) {
54+
} else if (Array.isArray(dbmTracedCommand.comment)) {
5555
dbmTracedCommand.comment.push(dbmTraceComment)
5656
} // do nothing if the comment is not a string or an array
5757
} else {

0 commit comments

Comments
 (0)