Added gist methods related to git + Truncate command output

This commit is contained in:
Thomas Miceli
2023-03-18 16:18:24 +01:00
parent 167abd4ae5
commit 22668be923
8 changed files with 202 additions and 112 deletions

View File

@ -99,7 +99,7 @@ func adminGistDelete(ctx echo.Context) error {
return errorRes(500, "Cannot retrieve gist", err)
}
if err = git.DeleteRepository(gist.User.Username, gist.Uuid); err != nil {
if err = gist.DeleteRepository(); err != nil {
return errorRes(500, "Cannot delete the repository", err)
}