This commit is contained in:
@@ -738,7 +738,6 @@ namespace AyaNova.Util
|
||||
//this is 4 times slower than doing it inside the loop below
|
||||
//seems counterintuitive but maybe it's to do with the db context not being refreshed?
|
||||
|
||||
|
||||
var f = new Bogus.Faker();//todo: this *can't* be right, I'm seeding 20k widgets in some cases
|
||||
|
||||
|
||||
@@ -752,7 +751,7 @@ namespace AyaNova.Util
|
||||
{
|
||||
Widget o = new Widget();
|
||||
o.Name = Uniquify(f.Commerce.ProductName());
|
||||
o.Active = true;
|
||||
o.Active = true;
|
||||
DateTime dtSeed = f.Date.Between(seedStartWindow, seedEndWindow).ToUniversalTime();
|
||||
o.StartDate = dtSeed;
|
||||
o.EndDate = dtSeed.AddMinutes(60).ToUniversalTime();
|
||||
|
||||
Reference in New Issue
Block a user