This commit is contained in:
2020-08-03 20:35:53 +00:00
parent ec8579c30d
commit 28d03a1b4d
2 changed files with 15 additions and 7 deletions

View File

@@ -708,6 +708,7 @@ $BODY$;
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!

View File

@@ -350,6 +350,13 @@ namespace AyaNova.Util
await EraseTableAsync("aworkordertemplateitem", conn);
await EraseTableAsync("aworkordertemplate", conn);
//----- NOTIFICATION
await EraseTableAsync("anotification", conn);
await EraseTableAsync("anotifyevent", conn);
await EraseTableAsync("anotifydeliverylog", conn);
await EraseTableAsync("anotifysubscription", conn);
await conn.CloseAsync();
}
@@ -424,13 +431,13 @@ namespace AyaNova.Util
if (await ct.User.LongCountAsync() < 22) return false;
//just check for a few for testing
if(await ct.User.AsNoTracking()
.Where(z =>
z.Login == "BizAdminFull" ||
z.Login == "DispatchFull" ||
z.Login == "InventoryFull" ||
z.Login == "Accounting" ||
z.Login == "TechFull"
if (await ct.User.AsNoTracking()
.Where(z =>
z.Login == "BizAdminFull" ||
z.Login == "DispatchFull" ||
z.Login == "InventoryFull" ||
z.Login == "Accounting" ||
z.Login == "TechFull"
).LongCountAsync() < 5) return false;
return true;