fix: cancel button on form, edit customer, show installed/total count
This commit is contained in:
@@ -394,6 +394,7 @@ class APIHandler(BaseHTTPRequestHandler):
|
||||
rows = query("""SELECT c.id, c.name, c.email, c.espocrm_url, c.is_active, c.notes, c.created_at, c.updated_at,
|
||||
c.coolify_url, c.coolify_app_uuid,
|
||||
(SELECT COUNT(*) FROM customer_extensions ce WHERE ce.customer_id = c.id AND ce.license_status = 'active') as extension_count,
|
||||
(SELECT COUNT(*) FROM customer_extensions ce WHERE ce.customer_id = c.id AND ce.license_status = 'active' AND ce.installed_version IS NOT NULL) as installed_count,
|
||||
(SELECT MAX(dl.started_at) FROM deployment_log dl WHERE dl.customer_id = c.id) as last_deploy
|
||||
FROM customers c ORDER BY c.name""")
|
||||
self._respond(200, rows)
|
||||
|
||||
Reference in New Issue
Block a user