Skip to content

Commit

Permalink
Fixed a bad commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 committed Feb 3, 2025
1 parent badb396 commit e9072f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions API/Services/Tasks/CleanupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ public void CleanupCacheDirectory()
/// </summary>
public async Task CleanupBackups()
{
var settings = await _unitOfWork.SettingsRepository.GetSettingsDtoAsync();
var dayThreshold = settings.TotalBackups;
var dayThreshold = (await _unitOfWork.SettingsRepository.GetSettingsDtoAsync()).TotalBackups;
_logger.LogInformation("Beginning cleanup of Database backups at {Time}", DateTime.Now);
var backupDirectory = settings.BookmarksDirectory;
var backupDirectory =
(await _unitOfWork.SettingsRepository.GetSettingAsync(ServerSettingKey.BackupDirectory)).Value;
if (!_directoryService.Exists(backupDirectory)) return;

var deltaTime = DateTime.Today.Subtract(TimeSpan.FromDays(dayThreshold));
Expand Down

0 comments on commit e9072f3

Please sign in to comment.