fix: correct RMM mapping column name from autotask_company_id to company_id

This commit is contained in:
root 2026-02-02 22:44:40 -05:00
parent 4bb8e25f56
commit ca61b7785d

View file

@ -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 {