From ce4618523cb5ce5ce2ec5759bf6ce242ccd64804 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Sat, 28 Dec 2024 16:42:32 -0500 Subject: [PATCH] correct clients.password col name (#373) * correct clients.password col name * fix #372 --- lib/models/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/models/client.js b/lib/models/client.js index 71520dc..7a78cae 100644 --- a/lib/models/client.js +++ b/lib/models/client.js @@ -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;