Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix updatecheck
  • Loading branch information
johnstcn committed Mar 9, 2023
commit 29f1d5d42c4a81c67dc256012eb231b1b8c632ef
3 changes: 2 additions & 1 deletion coderd/updatecheck/updatecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ func (c *Checker) update() (r Result, err error) {
return r, xerrors.Errorf("json marshal result: %w", err)
}

err = c.db.InsertOrUpdateLastUpdateCheck(ctx, string(b))
// nolint:gocritic // Inserting the last update check is a system function.
err = c.db.InsertOrUpdateLastUpdateCheck(dbauthz.AsSystemRestricted(ctx), string(b))
if err != nil {
return r, err
}
Expand Down