mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-28 22:57:43 +00:00
fix sql
This commit is contained in:
parent
e5ea131145
commit
2c2ae76574
1 changed files with 6 additions and 2 deletions
|
@ -137,7 +137,9 @@ func (p *postgresWatcherRepository) GetByTypeAndWatcheeID(ctx context.Context, t
|
|||
devices.sandbox,
|
||||
accounts.id,
|
||||
accounts.access_token,
|
||||
accounts.refresh_token
|
||||
accounts.refresh_token,
|
||||
subreddits.name AS subreddit_label,
|
||||
users.name AS user_label
|
||||
FROM watchers
|
||||
INNER JOIN devices ON watchers.device_id = devices.id
|
||||
INNER JOIN accounts ON watchers.account_id = accounts.id
|
||||
|
@ -183,7 +185,9 @@ func (p *postgresWatcherRepository) GetByDeviceAPNSTokenAndAccountRedditID(ctx c
|
|||
devices.sandbox,
|
||||
accounts.id,
|
||||
accounts.access_token,
|
||||
accounts.refresh_token
|
||||
accounts.refresh_token,
|
||||
subreddits.name AS subreddit_label,
|
||||
users.name AS user_label
|
||||
FROM watchers
|
||||
INNER JOIN accounts ON watchers.account_id = accounts.id
|
||||
INNER JOIN devices ON watchers.device_id = devices.id
|
||||
|
|
Loading…
Reference in a new issue