fix: unit tests

This commit is contained in:
Leon Mika 2026-03-18 22:19:26 +11:00
parent 9efa40879f
commit 740cf8979a
6 changed files with 16 additions and 264 deletions

View file

@ -145,8 +145,7 @@ func (ph PostsHandler) Patch(c fiber.Ctx) error {
return accepts(c, json(func() any {
return struct{}{}
}), html(func(c fiber.Ctx) error {
return c.Redirect().To(fmt.Sprintf("/sites/%v/posts"))
return c.Redirect().To(fmt.Sprintf("/sites/%v/posts", models.MustGetSite(c.Context()).ID))
}))
}