chore: update
This commit is contained in:
@@ -19,7 +19,6 @@ func NewHandler(svc *Service, helm *HelmProvisioner) *Handler {
|
||||
}
|
||||
|
||||
type createRequest struct {
|
||||
LeadID string `json:"lead_id" binding:"omitempty,uuid4"`
|
||||
Username string `json:"username" binding:"omitempty,min=3,max=64,alphanum"`
|
||||
|
||||
// Réglages saisis dans le popup de déploiement (voir ProvisionConfig).
|
||||
@@ -85,7 +84,7 @@ func (h *Handler) Create(c *gin.Context) {
|
||||
AdminUsername: req.AdminUsername,
|
||||
AdminPassword: req.AdminPassword,
|
||||
}
|
||||
d, err := h.svc.Create(req.LeadID, req.Username, cfg)
|
||||
d, err := h.svc.Create(req.Username, cfg)
|
||||
if err != nil {
|
||||
switch {
|
||||
case errors.Is(err, ErrPoolExhausted):
|
||||
|
||||
Reference in New Issue
Block a user