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

fix: returns wrong error in transaction #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lonetrail
Copy link

@lonetrail lonetrail commented Mar 12, 2024

if _, e := u.cardRepo.CreateCard(ctx, id); err != nil {
	return e
}

Will always commit the transaction even CreateCard method is failed. It seems to be wrong.

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 12, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants