From e9ef0740d8573aab96ab8b55b3a95a1492d8a6b4 Mon Sep 17 00:00:00 2001 From: Chris Bailey Date: Thu, 9 Jul 2026 15:31:28 -0400 Subject: [PATCH] make it first destination OR service --- webapps/console/lib/server/config-objects-service.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/webapps/console/lib/server/config-objects-service.ts b/webapps/console/lib/server/config-objects-service.ts index 97a74f12c..3e2947517 100644 --- a/webapps/console/lib/server/config-objects-service.ts +++ b/webapps/console/lib/server/config-objects-service.ts @@ -220,11 +220,15 @@ export class ConfigObjectsService { }); if (["destination", "service"].includes(type)) { - const count = await this.prisma.configurationObject.count({ - where: { workspaceId, type: type, deleted: false }, + const destinations = await this.prisma.configurationObject.count({ + where: { workspaceId, type: "destination", deleted: false }, }); - if (count === 1) { + const services = await this.prisma.configurationObject.count({ + where: { workspaceId, type: "service", deleted: false }, + }); + + if (destinations + services === 1) { withProductAnalytics( p => p.track("workspace_activated", {