Update preview and file count when git push with http/ssh

This commit is contained in:
Thomas Miceli committed 2023-03-19 00:27:30 +01:00
1 parent b505f7147e
commit 8998e46fea
3 files changed
+35 -1

No files matched your search

+1
View File
@@ -83,6 +83,7 @@ func runGitCommand(ch ssh.Channel, gitCmd string, keyID uint) error {
// updatedAt is updated only if serviceType is receive-pack
if verb == "receive-pack" {
_ = gist.SetLastActiveNow()
_ = gist.UpdatePreviewAndCount()
}
return nil