mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 09:57:47 +08:00
feat(admin): manual request-records cleanup with typed confirmation
This commit is contained in:
@@ -8221,6 +8221,15 @@ impl UsageWriteRepository for SqlxUsageReadRepository {
|
||||
) -> Result<UsageCleanupSummary, DataLayerError> {
|
||||
Self::cleanup_usage(self, window, batch_size, auto_delete_expired_keys).await
|
||||
}
|
||||
|
||||
async fn preview_usage_cleanup(
|
||||
&self,
|
||||
window: &UsageCleanupWindow,
|
||||
) -> Result<aether_data_contracts::repository::usage::UsageCleanupPreviewCounts, DataLayerError>
|
||||
{
|
||||
crate::repository::usage::postgres::cleanup::preview_usage_cleanup_impl(&self.pool, window)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
||||
struct StalePendingUsageRow {
|
||||
|
||||
Reference in New Issue
Block a user