mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +00:00
fix grace period expiry check
This commit is contained in:
parent
a94aa11845
commit
17019cecfb
1 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ func (p *postgresDeviceRepository) GetInboxNotifiableByAccountID(ctx context.Con
|
|||
INNER JOIN devices_accounts ON devices.id = devices_accounts.device_id
|
||||
WHERE devices_accounts.account_id = $1 AND
|
||||
devices_accounts.inbox_notifiable = TRUE AND
|
||||
grace_period_until > EXTRACT(EPOCH FROM NOW())`
|
||||
grace_period_expires_at > NOW()`
|
||||
|
||||
return p.fetch(ctx, query, id)
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ func (p *postgresDeviceRepository) GetWatcherNotifiableByAccountID(ctx context.C
|
|||
INNER JOIN devices_accounts ON devices.id = devices_accounts.device_id
|
||||
WHERE devices_accounts.account_id = $1 AND
|
||||
devices_accounts.watcher_notifiable = TRUE AND
|
||||
grace_period_until > EXTRACT(EPOCH FROM NOW())`
|
||||
grace_period_expires_at > NOW()`
|
||||
|
||||
return p.fetch(ctx, query, id)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue