This commit is contained in:
@@ -708,6 +708,7 @@ $BODY$;
|
||||
|
||||
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImporting WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user