update datetime for pushes

alphons <alphons@heijden.com> 20 Jul 2026, 21:31
2798edf73662e6fda7541960aaea98e419003776
1 files changed
  • src/GitServer/Controllers/GitController.cs
diff --git a/src/GitServer/Controllers/GitController.cs b/src/GitServer/Controllers/GitController.cs
index 77c31f7..8b351fc 100644
--- a/src/GitServer/Controllers/GitController.cs
+++ b/src/GitServer/Controllers/GitController.cs
@@ -1,3 +1,4 @@
+using GitServer.Data;
using GitServer.Models;
using GitServer.Services;
using Microsoft.AspNetCore.Mvc;
@@ -6,7 +7,7 @@ using Microsoft.Extensions.Options;
namespace GitServer.Controllers;
[ApiController]
-public class GitController(GitProcessService git, IOptions<GitServerOptions> options, ILogger<GitController> logger) : ControllerBase
+public class GitController(GitProcessService git, IOptions<GitServerOptions> options, ILogger<GitController> logger, AppDbContext db) : ControllerBase
{
private string GetRepoPath(string user, string repo)
@@ -94,6 +95,7 @@ public class GitController(GitProcessService git, IOptions<GitServerOptions> opt
// Bijwerken van UpdatedAt na een push
repoObj.UpdatedAt = DateTime.UtcNow;
+ await db.SaveChangesAsync();
}
catch (RepositoryDataMissingException ex)
{