mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-10-24 08:54:12 +00:00
bugfix: one account could potentially use speech creds from a different account
This commit is contained in:
1 parent
3141646dfd
commit
307787526d
2 files changed
+2
-2
No files matched your search
@@ -1,7 +1,7 @@
|
||||
const Model = require('./model');
|
||||
const {promisePool} = require('../db');
|
||||
const retrieveSql = 'SELECT * from speech_credentials WHERE account_sid = ?';
|
||||
const retrieveSqlForSP = 'SELECT * from speech_credentials WHERE service_provider_sid = ?';
|
||||
const retrieveSqlForSP = 'SELECT * from speech_credentials WHERE service_provider_sid = ? and account_sid is null';
|
||||
|
||||
class SpeechCredential extends Model {
|
||||
constructor() {
|
||||
|
||||
Reference in new issue
Block a user