Skip to content

Commit

Permalink
fix: ajustar inicialização do Timer que deleta códigos expirador
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoKroetz committed Jul 16, 2024
1 parent a5cac99 commit 0246dff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ public partial class VerificationService
private readonly DbContextOptions<HotelDbContext> _dbContextOptions;
private readonly ILogger<VerificationService> _logger;

public VerificationService(Timer timer, DbContextOptions<HotelDbContext> dbContextOptions, ILogger<VerificationService> logger)
public VerificationService(DbContextOptions<HotelDbContext> dbContextOptions, ILogger<VerificationService> logger)
{
_timer = timer;
_timer = new Timer(DeleteExpiredCodes, null, TimeSpan.Zero, TimeSpan.FromMinutes(20));
_dbContextOptions = dbContextOptions;
_logger = logger;
}
Expand Down

0 comments on commit 0246dff

Please sign in to comment.