Skip to content

Conversation

@Taihenc
Copy link
Member

@Taihenc Taihenc commented Jul 19, 2025

No description provided.

@Taihenc Taihenc changed the title Update freshmen night start DateTime Release Jul 19, 2025
await prisma.$transaction(async () => {
await this.groupRepository.removeUserFromGroup(userId, currentGroup.id);

await this.groupRepository.createGroupForUser(userId);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong transaction handling

}

await prisma.$transaction(async (tx) => {
await prisma.$transaction(async () => {
Copy link
Member Author

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:

Suggested change
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) {

@Taihenc Taihenc merged commit d15cc68 into main Jul 20, 2025
2 checks passed
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.

4 participants