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

TECH - définir le déclencheur comme étant le crawler quand le usecase a été déclenché par lui #2302

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

celineung
Copy link
Contributor

@celineung celineung commented Oct 8, 2024

Problème

Lorsqu'un usecase a été déclenché par l'outbox, il n'a pas de currentUser de défini.
Or dans le usecase UpdateAgencyReferringToUpdatedAgency on cherchait à accéder à l'id de ce currentUser qui est undefined. On obtenait finalement l'erreur:

Cannot read properties of undefined (reading 'id')"

Solution

Définir le déclencheur comme étant le crawler quand le usecase a été déclenché par lui

Copy link

github-actions bot commented Oct 8, 2024

@celineung celineung merged commit 7f3a10a into main Oct 8, 2024
14 checks passed
@celineung celineung deleted the fix-usecase-triggerdby-when-triggerdby-crawler branch October 8, 2024 14:47
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.

2 participants