Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 65fc7a5

Browse files
committed
fix watchers
1 parent 782f77a commit 65fc7a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/api/accounts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (a *api) upsertAccountsHandler(w http.ResponseWriter, r *http.Request) {
163163
me, err := rac.Me(ctx)
164164

165165
if err != nil {
166-
err := fmt.Errorf("failed to fetch user info: %w", err)
166+
err = fmt.Errorf("failed to fetch user info: %w", err)
167167
a.errorResponse(w, r, 422, err)
168168
return
169169
}

internal/repository/postgres_watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (p *postgresWatcherRepository) Create(ctx context.Context, watcher *domain.
226226
watcher.Label,
227227
watcher.DeviceID,
228228
watcher.AccountID,
229-
watcher.Type,
229+
int64(watcher.Type),
230230
watcher.WatcheeID,
231231
watcher.Author,
232232
watcher.Subreddit,

0 commit comments

Comments
 (0)