Skip to content

Commit 29f1d5d

Browse files
committed
fix updatecheck
1 parent e5a7cad commit 29f1d5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/updatecheck/updatecheck.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ func (c *Checker) update() (r Result, err error) {
210210
return r, xerrors.Errorf("json marshal result: %w", err)
211211
}
212212

213-
err = c.db.InsertOrUpdateLastUpdateCheck(ctx, string(b))
213+
// nolint:gocritic // Inserting the last update check is a system function.
214+
err = c.db.InsertOrUpdateLastUpdateCheck(dbauthz.AsSystemRestricted(ctx), string(b))
214215
if err != nil {
215216
return r, err
216217
}

0 commit comments

Comments
 (0)