Fix query
This commit is contained in:
parent
0ae8293abd
commit
c65eb2bf52
|
@ -300,7 +300,7 @@ func (s *membershipStatements) SelectRoomsWithMembership(
|
|||
stmt := sqlutil.TxStmt(txn, s.selectRoomsForUserStmt)
|
||||
rows, err = stmt.QueryContext(ctx, userID)
|
||||
} else {
|
||||
stmt := sqlutil.TxStmt(txn, s.selectMembershipsFromRoomStmt)
|
||||
stmt := sqlutil.TxStmt(txn, s.selectRoomsWithMembershipStmt)
|
||||
rows, err = stmt.QueryContext(ctx, membershipState, userID)
|
||||
}
|
||||
|
||||
|
|
|
@ -277,7 +277,7 @@ func (s *membershipStatements) SelectRoomsWithMembership(
|
|||
stmt := sqlutil.TxStmt(txn, s.selectRoomsForUserStmt)
|
||||
rows, err = stmt.QueryContext(ctx, userID)
|
||||
} else {
|
||||
stmt := sqlutil.TxStmt(txn, s.selectMembershipsFromRoomStmt)
|
||||
stmt := sqlutil.TxStmt(txn, s.selectRoomsWithMembershipStmt)
|
||||
rows, err = stmt.QueryContext(ctx, membershipState, userID)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue