examples
examples copied to clipboard
fix: returns wrong error in transaction
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.