Skip to content

Commit

Permalink
correct clients.password col name (#373)
Browse files Browse the repository at this point in the history
* correct clients.password col name

* fix #372
  • Loading branch information
davehorton authored Dec 28, 2024
1 parent 0eb8097 commit ce46185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/models/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class Client extends Model {
}

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
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 = ?`;
const [rows] = await promisePool.query(sql, service_provider_sid);
return rows;
Expand Down

0 comments on commit ce46185

Please sign in to comment.