Skip to content
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

Merged
merged 14 commits into from
Dec 18, 2024
Merged

[DEV-2017] Resync user on active campaign #1269

merged 14 commits into from
Dec 18, 2024

Conversation

tommaso1
Copy link
Collaborator

@tommaso1 tommaso1 commented Dec 5, 2024

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

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link

changeset-bot bot commented Dec 5, 2024

🦋 Changeset detected

Latest commit: 0bbe156

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
active-campaign-client Minor

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

.changeset/cuddly-cats-retire.md Outdated Show resolved Hide resolved
packages/active-campaign-client/src/index.ts Outdated Show resolved Hide resolved
packages/active-campaign-client/src/index.ts Outdated Show resolved Hide resolved
packages/active-campaign-client/src/helpers/resyncUser.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
Copy link
Collaborator

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(
Copy link
Collaborator

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?

Copy link
Contributor

Branch is not up to date with base branch

@tommaso1 it seems this Pull Request is not updated with base branch.
Please proceed with a merge or rebase to solve this.

@marcobottaro marcobottaro self-requested a review December 18, 2024 09:14
Copy link
Contributor

github-actions bot commented Dec 18, 2024

Jira Pull Request Link

This Pull Request refers to the following Jira issue DEV-2017

@MarcoPonchia MarcoPonchia merged commit 5e861a0 into main Dec 18, 2024
11 checks passed
@MarcoPonchia MarcoPonchia deleted the dev-2017 branch December 18, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants