This commit is contained in:
@@ -44,6 +44,9 @@ namespace AyaNova.Biz
|
|||||||
//then deletes it if created more than 90 days ago (pretty sure there are no back dated events, once it's passed it's past)
|
//then deletes it if created more than 90 days ago (pretty sure there are no back dated events, once it's passed it's past)
|
||||||
await ct.Database.ExecuteSqlInterpolatedAsync($"delete from anotifyevent where eventdate < {dtPastEventCutoff} and created < {dtDeleteCutoff}");
|
await ct.Database.ExecuteSqlInterpolatedAsync($"delete from anotifyevent where eventdate < {dtPastEventCutoff} and created < {dtDeleteCutoff}");
|
||||||
|
|
||||||
|
//NotifyDeliveryLog - deletes all log items older than 90 days
|
||||||
|
await ct.Database.ExecuteSqlInterpolatedAsync($"delete from anotifydeliverylog where processed < {dtDeleteCutoff}");
|
||||||
|
|
||||||
}
|
}
|
||||||
lastSweep = DateTime.UtcNow;
|
lastSweep = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user