Rewrite interface{} to any (#2535)
* chore: Rewrite interface{} to any
* Add ignore revs
This commit is contained in:
1 parent
ffdad31756
commit
f57454b6b9
298 files changed
+1758
-1756
No files matched your search
@@ -33,7 +33,7 @@ func (r *Repository) listControllersWithReader(ctx context.Context, reader db.Re
|
||||
ctx,
|
||||
&controllers,
|
||||
where,
|
||||
[]interface{}{},
|
||||
[]any{},
|
||||
db.WithLimit(-1),
|
||||
); err != nil {
|
||||
return nil, errors.Wrap(ctx, err, "workers.listControllersWithReader")
|
||||
@@ -58,7 +58,7 @@ func (r *Repository) UpsertController(ctx context.Context, controller *store.Con
|
||||
var err error
|
||||
onConflict := &db.OnConflict{
|
||||
Target: db.Columns{"private_id"},
|
||||
Action: append(db.SetColumns([]string{"description", "address"}), db.SetColumnValues(map[string]interface{}{"update_time": "now()"})...),
|
||||
Action: append(db.SetColumns([]string{"description", "address"}), db.SetColumnValues(map[string]any{"update_time": "now()"})...),
|
||||
}
|
||||
err = w.Create(ctx, controller, db.WithOnConflict(onConflict), db.WithReturnRowsAffected(&rowsUpdated))
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user