MSP-5223 rename field UpdateConfigNameRequest ConfigId -> Id
This commit is contained in:
1 parent
a51aae9b69
commit
57f58e7fb7
3 files changed
+4
-4
No files matched your search
+2
-2
@@ -176,12 +176,12 @@ definitions:
|
||||
type: object
|
||||
domain.UpdateConfigNameRequest:
|
||||
properties:
|
||||
configId:
|
||||
id:
|
||||
type: string
|
||||
newConfigName:
|
||||
type: string
|
||||
required:
|
||||
- configId
|
||||
- id
|
||||
- newConfigName
|
||||
type: object
|
||||
domain.UpdateVariableRequest:
|
||||
|
||||
+1
-1
@@ -26,6 +26,6 @@ type CreateUpdateConfigRequest struct {
|
||||
}
|
||||
|
||||
type UpdateConfigNameRequest struct {
|
||||
ConfigId string `validate:"required"`
|
||||
Id string `validate:"required"`
|
||||
NewConfigName string `validate:"required"`
|
||||
}
|
||||
@@ -207,7 +207,7 @@ func (r Config) UpdateConfigName(ctx context.Context, req domain.UpdateConfigNam
|
||||
Set("name", req.NewConfigName).
|
||||
Set("updated_at", squirrel.Expr("unixepoch()")).
|
||||
Where(squirrel.Eq{
|
||||
"id": req.ConfigId,
|
||||
"id": req.Id,
|
||||
}).
|
||||
ToSql()
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user