examples icon indicating copy to clipboard operation
examples copied to clipboard

fix: returns wrong error in transaction

Open lonetrail opened this issue 11 months ago • 0 comments

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.

lonetrail avatar Mar 12 '24 02:03 lonetrail