mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
fix watcher creation
This commit is contained in:
parent
bc80526251
commit
3803fea055
1 changed files with 1 additions and 3 deletions
|
@ -211,8 +211,6 @@ func (p *postgresWatcherRepository) Create(ctx context.Context, watcher *domain.
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
now := float64(time.Now().UTC().Unix())
|
|
||||||
|
|
||||||
query := `
|
query := `
|
||||||
INSERT INTO watchers
|
INSERT INTO watchers
|
||||||
(created_at, last_notified_at, label, device_id, account_id, type, watchee_id, author, subreddit, upvotes, keyword, flair, domain)
|
(created_at, last_notified_at, label, device_id, account_id, type, watchee_id, author, subreddit, upvotes, keyword, flair, domain)
|
||||||
|
@ -222,7 +220,7 @@ func (p *postgresWatcherRepository) Create(ctx context.Context, watcher *domain.
|
||||||
return p.conn.QueryRow(
|
return p.conn.QueryRow(
|
||||||
ctx,
|
ctx,
|
||||||
query,
|
query,
|
||||||
now,
|
time.Now(),
|
||||||
watcher.Label,
|
watcher.Label,
|
||||||
watcher.DeviceID,
|
watcher.DeviceID,
|
||||||
watcher.AccountID,
|
watcher.AccountID,
|
||||||
|
|
Loading…
Reference in a new issue