cleanupBefore60Days method

Future<int> cleanupBefore60Days()

Implementation

Future<int> cleanupBefore60Days() async {
  return await (delete(notificationAudit)
        ..where((item) => item.happenedAt.isSmallerThanValue(
            DateTime.now().subtract(const Duration(days: 60)))))
      .go();
}