mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 20:57:43 +00:00
fix watchers
This commit is contained in:
parent
782f77a7c4
commit
65fc7a5298
2 changed files with 2 additions and 2 deletions
|
@ -163,7 +163,7 @@ func (a *api) upsertAccountsHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
me, err := rac.Me(ctx)
|
me, err := rac.Me(ctx)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err := fmt.Errorf("failed to fetch user info: %w", err)
|
err = fmt.Errorf("failed to fetch user info: %w", err)
|
||||||
a.errorResponse(w, r, 422, err)
|
a.errorResponse(w, r, 422, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -226,7 +226,7 @@ func (p *postgresWatcherRepository) Create(ctx context.Context, watcher *domain.
|
||||||
watcher.Label,
|
watcher.Label,
|
||||||
watcher.DeviceID,
|
watcher.DeviceID,
|
||||||
watcher.AccountID,
|
watcher.AccountID,
|
||||||
watcher.Type,
|
int64(watcher.Type),
|
||||||
watcher.WatcheeID,
|
watcher.WatcheeID,
|
||||||
watcher.Author,
|
watcher.Author,
|
||||||
watcher.Subreddit,
|
watcher.Subreddit,
|
||||||
|
|
Loading…
Reference in a new issue