standardize on passing .query args as array (#356)

This commit is contained in:
Dave Horton
2023-05-22 09:56:05 -04:00
committed by GitHub
parent 32a84b7b19
commit 7393e3bcb7
4 changed files with 12 additions and 12 deletions

View File

@@ -1587,7 +1587,7 @@ class CallSession extends Emitter {
const pp = this._pool.promise();
try {
this.logger.info({accountSid: this.accountSid}, 'performQueueWebhook: looking up account');
const [r] = await pp.query(sqlRetrieveQueueEventHook, this.accountSid);
const [r] = await pp.query(sqlRetrieveQueueEventHook, [this.accountSid]);
if (0 === r.length) {
this.logger.info({accountSid: this.accountSid}, 'performQueueWebhook: no webhook provisioned');
this.queueEventHookRequestor = null;