From 0ac8b44ce09774ad58beb7bffb119313ff867685 Mon Sep 17 00:00:00 2001 From: Tau Date: Sat, 9 Nov 2019 14:00:24 -0500 Subject: [PATCH] idz/sql/teamMember.ts: Fix another ignored result set That should cover all the leftover uses of forUpdate() ... --- src/idz/sql/teamMember.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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