-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEV-2017] Resync user on active campaign #1269
Conversation
🦋 Changeset detectedLatest commit: 0bbe156 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
packages/active-campaign-client/src/helpers/getUserFromCognito.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Marco Ponchia <[email protected]>
Co-authored-by: Marco Ponchia <[email protected]>
Co-authored-by: Marco Ponchia <[email protected]>
Co-authored-by: Marco Ponchia <[email protected]>
packages/active-campaign-client/src/handlers/resyncUserHandler.ts
Outdated
Show resolved
Hide resolved
packages/active-campaign-client/src/handlers/resyncUserHandler.ts
Outdated
Show resolved
Hide resolved
await prevPromise; | ||
try { | ||
const result = await addContactToList(cognitoId, webinarId); | ||
console.log('Add contact to list result:', result, webinarId); // TODO: Remove after testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should remove the TODOs
import { DynamoDBClient, QueryCommand } from '@aws-sdk/client-dynamodb'; | ||
import { APIGatewayProxyResult } from 'aws-lambda'; | ||
|
||
export async function fetchSubscribedWebinarsFromDynamo( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about fetchWebinarSubscriptions
or get...
? Does fromDynamo
suffix is relevant?
Co-authored-by: marcobottaro <[email protected]>
Co-authored-by: marcobottaro <[email protected]>
Branch is not up to date with base branch@tommaso1 it seems this Pull Request is not updated with base branch. |
Jira Pull Request LinkThis Pull Request refers to the following Jira issue DEV-2017 |
If the sync with active campaign somehow fails this lambda takes the user, deletes it to be sure the state is reset, and then syncs it back again
List of Changes
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: