mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-13 12:20:03 -04:00
19 lines
519 B
Plaintext
19 lines
519 B
Plaintext
@page "/test/cleanup-stats"
|
|
@layout EmptyLayout
|
|
@inherits MainBase
|
|
|
|
<input type="hidden" id="soft-deleted-credential-count" value="@SoftDeletedCredentialCount" />
|
|
|
|
@code {
|
|
private int SoftDeletedCredentialCount { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await base.OnInitializedAsync();
|
|
|
|
var context = await DbService.GetDbContextAsync();
|
|
SoftDeletedCredentialCount = await context.Credentials.CountAsync(c => c.IsDeleted);
|
|
}
|
|
}
|