chore: update
This commit is contained in:
@@ -49,7 +49,7 @@ func NewService(store Store, pool Pool, prov Provisioner, cfg Config) *Service {
|
||||
// username (optionnel) rattache la démo à un client existant. Un client n'a
|
||||
// droit qu'à une seule démo active à la fois. cfg (bot Telegram, stockage)
|
||||
// n'est jamais persisté : transmis tel quel au provisioning.
|
||||
func (s *Service) Create(leadID, username string, cfg ProvisionConfig) (Demo, error) {
|
||||
func (s *Service) Create(username string, cfg ProvisionConfig) (Demo, error) {
|
||||
if err := cfg.Validate(); err != nil {
|
||||
return Demo{}, err
|
||||
}
|
||||
@@ -70,7 +70,6 @@ func (s *Service) Create(leadID, username string, cfg ProvisionConfig) (Demo, er
|
||||
demo := Demo{
|
||||
ID: id,
|
||||
Username: normalizedUsername,
|
||||
LeadID: leadID,
|
||||
Status: StatusPending,
|
||||
Namespace: "demo-" + shortID(id),
|
||||
CreatedAt: s.now().UTC(),
|
||||
|
||||
Reference in New Issue
Block a user