Skip to content

Commit

Permalink
fix: use prisma instance inside the transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
joannechen1223 committed Nov 18, 2024
1 parent 2f213ae commit 75e5bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/recnet-api/src/database/repository/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default class UserRepository {
});

// follow the person who gave the invite code
await this.prisma.followingRecord.create({
await prisma.followingRecord.create({
data: {
followedById: userInTransaction.id,
followingId: inviteCode.ownerId,
Expand Down

0 comments on commit 75e5bcd

Please sign in to comment.