mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-11-08 20:43:46 +00:00
correct clients.password col name (#373)
* correct clients.password col name * fix #372
This commit is contained in:
1 parent
0eb8097e32
commit
ce4618523c
1 file changed
+2
-2
@@ -13,9 +13,9 @@ class Client extends Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static async retrieveAllByServiceProviderSid(service_provider_sid) {
|
static async retrieveAllByServiceProviderSid(service_provider_sid) {
|
||||||
const sql = `SELECT c.client_sid, c.account_sid, c.is_active, c.username, c.hashed_password
|
const sql = `SELECT c.client_sid, c.account_sid, c.is_active, c.username, c.password
|
||||||
FROM ${this.table} AS c LEFT JOIN accounts AS acc ON c.account_sid = acc.account_sid
|
FROM ${this.table} AS c LEFT JOIN accounts AS acc ON c.account_sid = acc.account_sid
|
||||||
LEFT JOIN service_providers AS sp ON sp.service_provider_sid = accs.service_provider_sid
|
LEFT JOIN service_providers AS sp ON sp.service_provider_sid = acc.service_provider_sid
|
||||||
WHERE sp.service_provider_sid = ?`;
|
WHERE sp.service_provider_sid = ?`;
|
||||||
const [rows] = await promisePool.query(sql, service_provider_sid);
|
const [rows] = await promisePool.query(sql, service_provider_sid);
|
||||||
return rows;
|
return rows;
|
||||||
|
|||||||
Reference in new issue
Block a user