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

add transactions on L&E webhook #489

Merged
merged 1 commit into from
Jan 10, 2023
Merged

Conversation

dev-jotape
Copy link
Collaborator

@dev-jotape dev-jotape commented Jan 5, 2023

This PR fixes #486

Changes

Add transactions on L&E webhook.
I added a transaction inside the for that starts creating the categories to do a commit every time that a category and its levels and lessons were created.
And another transaction was added to the group of updates that set the registry inactive.

I changed a little the update that set the languages because using the model instance I couldn't use the transactions.

Tests

@dev-jotape dev-jotape force-pushed the refactor/learn-and-earn-webhook branch from 510fe41 to dbca205 Compare January 10, 2023 19:28
@sonarcloud
Copy link

sonarcloud bot commented Jan 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@dev-jotape dev-jotape merged commit 3157e87 into main Jan 10, 2023
@dev-jotape dev-jotape deleted the refactor/learn-and-earn-webhook branch January 10, 2023 19:48
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.

refactor prismic webhook
2 participants