mirror of
https://github.com/thomiceli/opengist.git
synced 2025-06-13 22:07:11 +02:00
Update preview and file count when git push with http/ssh
This commit is contained in:
@ -134,7 +134,9 @@ func pack(ctx echo.Context, serviceType string) error {
|
||||
|
||||
// updatedAt is updated only if serviceType is receive-pack
|
||||
if serviceType == "receive-pack" {
|
||||
_ = getData(ctx, "gist").(*models.Gist).SetLastActiveNow()
|
||||
gist := getData(ctx, "gist").(*models.Gist)
|
||||
_ = gist.SetLastActiveNow()
|
||||
_ = gist.UpdatePreviewAndCount()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user