diff --git a/pkg/server/moments_api.go b/pkg/server/moments_api.go index 4c858ad..dc785a2 100644 --- a/pkg/server/moments_api.go +++ b/pkg/server/moments_api.go @@ -101,8 +101,8 @@ func editMoment(c *fiber.Ctx) error { return err } - var item *models.Comment - if err := database.C.Where(models.Comment{ + var item *models.Moment + if err := database.C.Where(models.Moment{ PostBase: models.PostBase{ BaseModel: models.BaseModel{ID: uint(id)}, AuthorID: user.ID,