fix: unit tests
This commit is contained in:
parent
9efa40879f
commit
740cf8979a
6 changed files with 16 additions and 264 deletions
|
|
@ -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))
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue