fix: correct RMM mapping column name from autotask_company_id to company_id
This commit is contained in:
parent
4bb8e25f56
commit
ca61b7785d
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ export async function GET(request: NextRequest) {
|
|||
let rmmMapped = 0;
|
||||
try {
|
||||
const rmmResult = await postgresClient.query(
|
||||
'SELECT COUNT(*) as mapped FROM rmm_site_mappings WHERE autotask_company_id IS NOT NULL'
|
||||
'SELECT COUNT(*) as mapped FROM rmm_site_mappings WHERE company_id IS NOT NULL'
|
||||
);
|
||||
rmmMapped = parseInt(rmmResult.rows[0]?.mapped || '0');
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue