Skip to content

Commit

Permalink
correct field saving
Browse files Browse the repository at this point in the history
  • Loading branch information
mlapaglia committed Nov 8, 2023
1 parent 0c5e09d commit 582d099
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ await _singlePlateWebhookHandler.HandleWebhookAsync(
var agent = await _processorContext.Agents
.FirstOrDefaultAsync(cancellationToken);

agent.LastSuccessfulScrapeEpoch = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
await _processorContext.SaveChangesAsync();
agent.LastHeartbeatEpochMs = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
await _processorContext.SaveChangesAsync(cancellationToken);
}
else
{
Expand Down

0 comments on commit 582d099

Please sign in to comment.