🐛 Fix delete moment issue

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

View File

@ -130,7 +130,7 @@ func deleteMoment(c *fiber.Ctx) error {
id, _ := c.ParamsInt("momentId", 0)
var item *models.Moment
if err := database.C.Where(models.Comment{
if err := database.C.Where(models.Moment{
PostBase: models.PostBase{
BaseModel: models.BaseModel{ID: uint(id)},
AuthorID: user.ID,