Skip to content

Commit

Permalink
Merge pull request #51 from mixmaxhq/kris/CORE-4193
Browse files Browse the repository at this point in the history
fix: set default additionalDimensions to prevent  `undefined` error
  • Loading branch information
kikajanovcik committed Jul 11, 2023
2 parents 46340fa + 56ab15a commit c7ae930
Show file tree
Hide file tree
Showing 3 changed files with 1,200 additions and 1,048 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Metric.prototype.put = function(...args) {
return this._put(...args);
};

Metric.prototype._put = function(value, metricName, units, additionalDimensions) {
Metric.prototype._put = function(value, metricName, units, additionalDimensions = []) {
var self = this;
// Only publish if we are enabled
if (self.options.enabled) {
Expand Down
Loading

0 comments on commit c7ae930

Please sign in to comment.