🐛 Fix cannot edit moment

This commit is contained in:
LittleSheep 2024-05-08 21:42:06 +08:00
parent fa87a8e838
commit 744a2511e9

View File

@ -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,