mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 15:44:26 +01:00
run data erasure every day
This commit is contained in:
@@ -104,8 +104,8 @@ namespace BTCPayServer.Plugins.DataErasure
|
|||||||
|
|
||||||
skip += 100;
|
skip += 100;
|
||||||
}
|
}
|
||||||
|
if(count > 0)
|
||||||
_logger.LogInformation($"Erased {count} invoice data for store {setting.Key}");
|
_logger.LogInformation($"Erased {count} invoice data for store {setting.Key}");
|
||||||
setting.Value.LastRunCutoff = cutoffDate;
|
setting.Value.LastRunCutoff = cutoffDate;
|
||||||
await SetCore(setting.Key, setting.Value);
|
await SetCore(setting.Key, setting.Value);
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,7 @@ namespace BTCPayServer.Plugins.DataErasure
|
|||||||
|
|
||||||
|
|
||||||
_runningLock.Release();
|
_runningLock.Release();
|
||||||
await Task.Delay(TimeSpan.FromMinutes(1), cancellationToken);
|
await Task.Delay(TimeSpan.FromDays(1), cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user