diff --git a/currentstateserver/storage/postgres/current_room_state_table.go b/currentstateserver/storage/postgres/current_room_state_table.go index ed2728f41..7d2056711 100644 --- a/currentstateserver/storage/postgres/current_room_state_table.go +++ b/currentstateserver/storage/postgres/current_room_state_table.go @@ -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 } diff --git a/currentstateserver/storage/sqlite3/current_room_state_table.go b/currentstateserver/storage/sqlite3/current_room_state_table.go index 7abb62a5b..5c7e8b0a7 100644 --- a/currentstateserver/storage/sqlite3/current_room_state_table.go +++ b/currentstateserver/storage/sqlite3/current_room_state_table.go @@ -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 }