Skip to content

Commit

Permalink
[hooks] update for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
waiterZen committed Nov 29, 2021
1 parent 57198ad commit d02e313
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/hooks/api/parts/triggers/incoming_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ class IncomingDataTrigger {
const ob = {
params: {
app_user: JSON.parse(JSON.stringify(obj.params.app_user)),
app_id: common.db.ObjectID(obj.params.app_id.toString()),
app_id: common.db.ObjectID(obj.params.app_id.toString()),
req: {
header: JSON.parse(JSON.stringify(obj.params.req.headers||{})),
header: JSON.parse(JSON.stringify(obj.params.req.headers || {})),
},
ip_address: obj.params.ip_address,
qstring: JSON.parse(JSON.stringify(obj.params.qstring || {})),
Expand All @@ -93,10 +93,11 @@ class IncomingDataTrigger {
return;
}
this.process(e, ob);
} catch (err) {
}
catch (err) {
console.log(err);
}

});
});
}
Expand Down

0 comments on commit d02e313

Please sign in to comment.