diff --git a/src/idz/sql/teamMember.ts b/src/idz/sql/teamMember.ts index 45e2005..43286eb 100644 --- a/src/idz/sql/teamMember.ts +++ b/src/idz/sql/teamMember.ts @@ -74,7 +74,7 @@ export class SqlTeamMemberRepository implements TeamMemberRepository { .where("id", teamId) .forUpdate(); - await this._txn.modify(lockSql); + await this._txn.fetchRow(lockSql); // Double-check (with lock held) that there is room to join this team. // If this fails then the error will propagate to the client and it will