We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59eda94 commit 83b8136Copy full SHA for 83b8136
src/db_ref.ts
@@ -121,9 +121,9 @@ export class DBRef extends BSONValue {
121
inspect(this.oid, options),
122
...(this.db ? [inspect(this.db, options)] : []),
123
...(Object.keys(this.fields).length > 0 ? [inspect(this.fields, options)] : [])
124
- ].map(arg => addQuotes ? `'${arg}'` : arg);
+ ].map(arg => (addQuotes ? `'${arg}'` : arg));
125
126
- args[1] = addQuotes ? `new ObjectId(${args[1]})` : args[1];
+ args[1] = addQuotes ? `new ObjectId(${args[1]})` : args[1];
127
128
return `new DBRef(${args.join(', ')})`;
129
}
0 commit comments