This commit is contained in:
2021-08-03 00:47:46 +00:00
parent bff537aa72
commit ce663cc36b
2 changed files with 10 additions and 3 deletions

View File

@@ -4753,8 +4753,14 @@ namespace AyaNova.Biz
//
internal static async Task ProcessInsufficientInventoryNotificationAsync(AyContext ct, ILogger log)
{
//quick check if *anyone* is subscribed to this and early exit if not
//still here? Then get a list of all upcoming PM's by id and date
//TODO: how to know when to stop, won't this just keep repeating??
//check log? Has it's own frequency unlike 12 hour thing??
//ideally sb once only, perhaps once only every 90 days or however long the log is kept for
//quick check if *anyone* is subscribed to this early exit if not
//still here, check list again to see if it's been notified for that subscription id and remove it if yes
//some kind of collection + query magic here?
//still here? subscriber List not empty? Then get a list of all upcoming PM's by id and date
//iterate PM's
//each PM
//iterate list of subscribers and see if any pm's are within the threshold