mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 23:57:42 +01:00
Merge pull request #8010 from wy65701436/remove-robot-id
remove the id in the post body when to create a robot account
This commit is contained in:
commit
a820cf1236
@ -65,7 +65,6 @@ func (rq *RobotReq) Valid(v *validation.Validation) {
|
||||
|
||||
// RobotRep ...
|
||||
type RobotRep struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
@ -158,7 +158,6 @@ func (r *RobotAPI) Post() {
|
||||
}
|
||||
|
||||
robotRep := models.RobotRep{
|
||||
ID: id,
|
||||
Name: robot.Name,
|
||||
Token: rawTk,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user