diff --git a/seed.go b/seed.go index 4ce3ee1..b33aeb1 100644 --- a/seed.go +++ b/seed.go @@ -115,20 +115,21 @@ func (f *Seed) SeedData(client *mongo.Client) error { } // SeedAllDemoData - seed data for demo -// models: { -// "_id": string -// "name": string, -// "description": string -// "year": integer -// } // -// robots: { -// "_id": string -// "modelId": string -// "notes": string, -// "batteryPct": float, -// "tasks": [{"for": string, "minutesUsed": integer}] -// } +// models: { +// "_id": string +// "name": string, +// "description": string +// "year": integer +// } +// +// robots: { +// "_id": string +// "modelId": string +// "notes": string, +// "batteryPct": float, +// "tasks": [{"for": string, "minutesUsed": integer}] +// } func (f *Seed) SeedAllDemoData(client *mongo.Client) error { var err error if err = f.SeedFavorites(client); err != nil { @@ -359,7 +360,7 @@ func getVehicle() bson.M { if delta == 0 { used = false } - brand := brands[rand.Intn(len(styles))] + brand := brands[rand.Intn(len(brands))] color := colors[rand.Intn(len(colors))] style := styles[rand.Intn(len(styles))] diff --git a/version b/version index d5e98f7..31e5c84 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.3.2 \ No newline at end of file +1.3.3