This commit is contained in:
2020-11-27 19:55:33 +00:00
parent 54b9455e74
commit f264f012ed
6 changed files with 16 additions and 32 deletions

View File

@@ -126,7 +126,7 @@ namespace AyaNova.Biz
//This is told about an event and then determines if there are any subscriptions related to that event and proceses them accordingly
//todo: this should take some kind of general event type like the AyaEvent types (i.e. which CRUD operation is in effect if relevant)
//and also a biz object before and after or just before if not a change and also a AyaType
@@ -141,10 +141,12 @@ namespace AyaNova.Biz
bool SaveContext = false;
try
{
using (AyContext ct = AyaNova.Util.ServiceProviderProvider.DBContext)
{
//short circuit if there are no subscriptions which would be typical of a v8 migrate scenario or fresh import or just not using notification
if(!await ct.NotifySubscription.AnyAsync())
return;
//switch through AyaEvent then individual Ayatypes as required for event types
switch (ayaEvent)
{