write service_provider_sid with alerts

This commit is contained in:
Dave Horton
2022-09-07 23:51:40 +02:00
parent e90ef6bc70
commit 889257d7db
14 changed files with 85 additions and 175 deletions

View File

@@ -5,7 +5,7 @@ const timeSeries = require('@jambonz/time-series');
let alerter ;
class BaseRequestor extends Emitter {
constructor(logger, account_sid, hook, secret) {
constructor(logger, service_provider_sid, account_sid, hook, secret) {
super();
assert(typeof hook === 'object');
@@ -15,6 +15,7 @@ class BaseRequestor extends Emitter {
this.username = hook.username;
this.password = hook.password;
this.secret = secret;
this.service_provider_sid = service_provider_sid;
this.account_sid = account_sid;
const {stats} = require('../../').srf.locals;