This commit is contained in:
2020-06-05 19:56:09 +00:00
parent 7e43d4a3e3
commit 5d6fcf7f0d
3 changed files with 5 additions and 5 deletions

View File

@@ -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();