mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 22:03:10 -06:00
Fix queries
This commit is contained in:
parent
973cbbd47f
commit
34f4e402c8
|
|
@ -334,7 +334,7 @@ func (s *currentRoomStateStatements) SelectKnownUsers(ctx context.Context, userI
|
|||
}
|
||||
|
||||
func (s *currentRoomStateStatements) SelectKnownRooms(ctx context.Context) ([]string, error) {
|
||||
rows, err := s.selectKnownUsersStmt.QueryContext(ctx)
|
||||
rows, err := s.selectKnownRoomsStmt.QueryContext(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -354,7 +354,7 @@ func (s *currentRoomStateStatements) SelectKnownUsers(ctx context.Context, userI
|
|||
}
|
||||
|
||||
func (s *currentRoomStateStatements) SelectKnownRooms(ctx context.Context) ([]string, error) {
|
||||
rows, err := s.selectKnownUsersStmt.QueryContext(ctx)
|
||||
rows, err := s.selectKnownRoomsStmt.QueryContext(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue