-
Couldn't load subscription status.
- Fork 1
Release #34
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
Conversation
[Fix] Houses
chore: update freshmen night start date time
src/usecase/group/groupUsecase.ts
Outdated
| await prisma.$transaction(async () => { | ||
| await this.groupRepository.removeUserFromGroup(userId, currentGroup.id); | ||
|
|
||
| await this.groupRepository.createGroupForUser(userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong transaction handling
src/usecase/group/groupUsecase.ts
Outdated
| } | ||
|
|
||
| await prisma.$transaction(async (tx) => { | ||
| await prisma.$transaction(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong transaction handling
need to be:
| await prisma.$transaction(async () => { | |
| await prisma.$transaction(async (tx) => { | |
| // then we pass this tx to a repo method | |
| await this.groupRepository.removeUserFromGroup(memberUserId, ownerGroup.id, tx) { | |
No description provided.