From da557fbe6070e98bda2fde0341d5be360d7941ea Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 8 May 2024 21:42:36 +0800 Subject: [PATCH] :bug: Fix delete moment issue --- pkg/server/moments_api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/moments_api.go b/pkg/server/moments_api.go index dc785a2..57f5287 100644 --- a/pkg/server/moments_api.go +++ b/pkg/server/moments_api.go @@ -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,