Browse Source

fix: typo

mj-v1.14.3
domi41 11 months ago
parent
commit
fcefce80f1
  1. 2
      routers/repo/poll.go

2
routers/repo/poll.go

@ -170,7 +170,7 @@ func EditPollPost(ctx *context.Context) {
ctx.Redirect(ctx.Repo.RepoLink + "/polls")
}
// DeletePoll delete a poll and redirects
// DeletePoll deletes a poll and redirects
func DeletePoll(ctx *context.Context) {
if err := models.DeletePollByRepoID(ctx.Repo.Repository.ID, ctx.ParamsInt64(":id")); err != nil {
ctx.Flash.Error("DeletePollByRepoID: " + err.Error())

Loading…
Cancel
Save