🐛 Fix delete moment issue
This commit is contained in:
parent
744a2511e9
commit
da557fbe60
@ -130,7 +130,7 @@ func deleteMoment(c *fiber.Ctx) error {
|
|||||||
id, _ := c.ParamsInt("momentId", 0)
|
id, _ := c.ParamsInt("momentId", 0)
|
||||||
|
|
||||||
var item *models.Moment
|
var item *models.Moment
|
||||||
if err := database.C.Where(models.Comment{
|
if err := database.C.Where(models.Moment{
|
||||||
PostBase: models.PostBase{
|
PostBase: models.PostBase{
|
||||||
BaseModel: models.BaseModel{ID: uint(id)},
|
BaseModel: models.BaseModel{ID: uint(id)},
|
||||||
AuthorID: user.ID,
|
AuthorID: user.ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user