Fix delete site only working on newt site

This commit is contained in:
Owen
2026-06-05 14:37:44 -07:00
parent c9cb28af45
commit 8e5d9e94a9
2 changed files with 11 additions and 2 deletions

View File

@@ -93,10 +93,9 @@ export async function deleteSite(
// Clean up all client associations and send peer/proxy removal
// messages in a single efficient pass before deleting the row.
await cleanupSiteAssociations(site, trx);
await trx.delete(sites).where(eq(sites.siteId, siteId));
}
await trx.delete(sites).where(eq(sites.siteId, siteId));
await usageService.add(site.orgId, FeatureId.SITES, -1, trx);
});