fix watchers

This commit is contained in:
Andre Medeiros 2023-03-31 11:57:09 -04:00
parent 6b00648933
commit 6b67c55ffc
No known key found for this signature in database
GPG key ID: 38F11905BF87C320
2 changed files with 2 additions and 2 deletions
internal

View file

@ -163,7 +163,7 @@ func (a *api) upsertAccountsHandler(w http.ResponseWriter, r *http.Request) {
me, err := rac.Me(ctx)
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)
return
}

View file

@ -226,7 +226,7 @@ func (p *postgresWatcherRepository) Create(ctx context.Context, watcher *domain.
watcher.Label,
watcher.DeviceID,
watcher.AccountID,
watcher.Type,
int64(watcher.Type),
watcher.WatcheeID,
watcher.Author,
watcher.Subreddit,