Skip to content

when recipient is found in trolley, update referenceId #33

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

vas3a
Copy link
Collaborator

@vas3a vas3a commented Apr 24, 2025

No description provided.

@@ -47,6 +47,12 @@ export class TrolleyService {
// make sure it's same email address
foundRecipient[0].email === user.email
) {
if (foundRecipient[0].referenceId !== user.id) {
await this.trolley.client.recipient.update(foundRecipient[0].id, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding error handling for the update method. If the update fails, it might be useful to log the error or handle it in some way to ensure the application can respond appropriately.

@vas3a vas3a merged commit 15bacc4 into dev Apr 24, 2025
1 check passed
@vas3a vas3a deleted the trolley-widget-fixes branch April 24, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant