* avoid creating multiple api keys when not necessary

* fetch messages and calls if user switches phone number while on an active sub
This commit is contained in:
m5r
2021-10-19 23:12:16 +02:00
parent f11c7d3723
commit 29d24f9fb4
2 changed files with 45 additions and 14 deletions

View File

@ -70,10 +70,6 @@ export const subscriptionCreatedQueue = Queue<Payload>("api/queue/subscription-c
{ organizationId, phoneNumberId },
{ id: `fetch-messages-${organizationId}-${phoneNumberId}` },
),
setTwilioWebhooks.enqueue(
{ organizationId, phoneNumberId },
{ id: `set-twilio-webhooks-${organizationId}-${phoneNumberId}` },
),
]);
if (isReturningSubscriber) {