We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486d79e commit e37c2a1Copy full SHA for e37c2a1
azure/activity_logs_monitoring/index.js
@@ -396,12 +396,15 @@ class EventhubLogHandler {
396
// If the check is true, find and replace single quotes
397
// with double quotes, to make a proper JSON
398
// which is then converted into a JSON Object
399
- parsedProperties = JSON.parse(record.properties.replace(/'/g, '"'));
400
- record.properties = parsedProperties;
+ record.properties = JSON.parse(record.properties.replace(/'/g, '"'));
+ return record;
401
} catch {
402
this.context.error('Unable to fix properties field to JSON Object');
403
404
}
- return record;
405
+ } else {
406
407
+ }
408
409
410
handleLogs(logs) {
0 commit comments