From 34f4e402c877ab56f91c299e7cef506b9244fef9 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 11 Aug 2020 15:41:49 +0100 Subject: [PATCH] Fix queries --- currentstateserver/storage/postgres/current_room_state_table.go | 2 +- currentstateserver/storage/sqlite3/current_room_state_table.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }