Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix[callkit]: remove duplicate notification service stack (#3122)

Peter Chinmanfa7860fb53cf
diff --git a/infra/packages/shared/src/macro_notify.ts b/infra/packages/shared/src/macro_notify.ts
index 5be9b0321b..c0e2f57468 100644
--- a/infra/packages/shared/src/macro_notify.ts
+++ b/infra/packages/shared/src/macro_notify.ts
@@ -4,6 +4,7 @@ import { stack } from '../../shared';
export function getMacroNotify(): {
notificationIngressQueueName: pulumi.Output<string>;
notificationIngressQueueArn: pulumi.Output<string>;
+ notificationApnsVoipPlatformArn: pulumi.Output<string>;
} {
const notificationServiceStack = new pulumi.StackReference(
'notification-service-stack',
@@ -22,8 +23,14 @@ export function getMacroNotify(): {
.getOutput('notificationIngressQueueName')
.apply((name) => name as string);
+ const notificationApnsVoipPlatformArn: pulumi.Output<string> =
+ notificationServiceStack
+ .getOutput('notificationApnsVoipPlatformArn')
+ .apply((arn) => arn as string);
+
return {
notificationIngressQueueName,
notificationIngressQueueArn,
+ notificationApnsVoipPlatformArn,
};
}
diff --git a/infra/stacks/cloud-storage-service/index.ts b/infra/stacks/cloud-storage-service/index.ts
index 1af5d5365f..c6fbec3810 100644
--- a/infra/stacks/cloud-storage-service/index.ts
+++ b/infra/stacks/cloud-storage-service/index.ts
@@ -183,16 +183,11 @@ const contactsQueueArn: pulumi.Output<string> = contactsServiceStack
.getOutput('contactsQueueArn')
.apply((arn) => arn as string);
-const { notificationIngressQueueName, notificationIngressQueueArn } =
- getMacroNotify();
-
-const notificationServiceStack = new pulumi.StackReference(
- 'notification-service-stack',
- { name: `macro-inc/notification-service/${stack}` }
-);
-const snsApnsVoipPlatformArn: pulumi.Output<string> = notificationServiceStack
- .getOutput('notificationApnsVoipPlatformArn')
- .apply((arn) => arn as string);
+const {
+ notificationIngressQueueName,
+ notificationIngressQueueArn,
+ notificationApnsVoipPlatformArn: snsApnsVoipPlatformArn,
+} = getMacroNotify();
const appleBundleId = config.require('apple_bundle_id');
const APPLE_BUNDLE_ID = aws.secretsmanager