mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: rename "InsertOrUpdate" to Upsert around the codebase (#6823)
* chore: rename "InsertOrUpdate" to Upsert around the codebase The shorter name uses up less line width, is easier to read and is used more often. * make gen
This commit is contained in:
@@ -211,7 +211,7 @@ func (c *Checker) update() (r Result, err error) {
|
||||
}
|
||||
|
||||
// nolint:gocritic // Inserting the last update check is a system function.
|
||||
err = c.db.InsertOrUpdateLastUpdateCheck(dbauthz.AsSystemRestricted(ctx), string(b))
|
||||
err = c.db.UpsertLastUpdateCheck(dbauthz.AsSystemRestricted(ctx), string(b))
|
||||
if err != nil {
|
||||
return r, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user