mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-27 00:31:55 -06:00
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)
|
stmt := sqlutil.TxStmt(txn, s.selectRoomsForUserStmt)
|
||||||
rows, err = stmt.QueryContext(ctx, userID)
|
rows, err = stmt.QueryContext(ctx, userID)
|
||||||
} else {
|
} else {
|
||||||
stmt := sqlutil.TxStmt(txn, s.selectMembershipsFromRoomStmt)
|
stmt := sqlutil.TxStmt(txn, s.selectRoomsWithMembershipStmt)
|
||||||
rows, err = stmt.QueryContext(ctx, membershipState, userID)
|
rows, err = stmt.QueryContext(ctx, membershipState, userID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ func (s *membershipStatements) SelectRoomsWithMembership(
|
||||||
stmt := sqlutil.TxStmt(txn, s.selectRoomsForUserStmt)
|
stmt := sqlutil.TxStmt(txn, s.selectRoomsForUserStmt)
|
||||||
rows, err = stmt.QueryContext(ctx, userID)
|
rows, err = stmt.QueryContext(ctx, userID)
|
||||||
} else {
|
} else {
|
||||||
stmt := sqlutil.TxStmt(txn, s.selectMembershipsFromRoomStmt)
|
stmt := sqlutil.TxStmt(txn, s.selectRoomsWithMembershipStmt)
|
||||||
rows, err = stmt.QueryContext(ctx, membershipState, userID)
|
rows, err = stmt.QueryContext(ctx, membershipState, userID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue