mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
postgres is a stickler for types
This commit is contained in:
parent
88a3e0a21f
commit
188036a838
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,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 > NOW()`
|
||||
grace_period_until > EXTRACT(EPOCH FROM NOW())`
|
||||
|
||||
return p.fetch(ctx, query, id)
|
||||
}
|
||||
|
@ -104,7 +104,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 > NOW()`
|
||||
grace_period_until > EXTRACT(EPOCH FROM NOW())`
|
||||
|
||||
return p.fetch(ctx, query, id)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue