From f267db8497b412b4f2605969e3660a93f83ef886 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 7 Apr 2022 11:35:59 -0400 Subject: [PATCH] fix ambiguous expires_at --- internal/repository/postgres_account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/postgres_account.go b/internal/repository/postgres_account.go index 798a204..c84a5a2 100644 --- a/internal/repository/postgres_account.go +++ b/internal/repository/postgres_account.go @@ -186,7 +186,7 @@ func (p *postgresAccountRepository) Disassociate(ctx context.Context, acc *domai func (p *postgresAccountRepository) GetByAPNSToken(ctx context.Context, token string) ([]domain.Account, error) { query := ` - SELECT accounts.id, username, accounts.account_id, access_token, refresh_token, expires_at, last_message_id, last_checked_at, last_unstuck_at + SELECT accounts.id, username, accounts.account_id, access_token, refresh_token, accounts.expires_at, last_message_id, last_checked_at, last_unstuck_at FROM accounts INNER JOIN devices_accounts ON accounts.id = devices_accounts.account_id INNER JOIN devices ON devices.id = devices_accounts.device_id