Skip to content

Commit

Permalink
fix #372
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Dec 28, 2024
1 parent 749d104 commit 6d5cf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.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 6d5cf62

Please sign in to comment.