🐛 Fix deleted message event notifying issue

This commit is contained in:
2024-12-08 12:14:46 +08:00
parent 8bf45bdefe
commit f50e376f6c
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ func getEvent(c *fiber.Ctx) error {
return fiber.NewError(fiber.StatusForbidden, fmt.Sprintf("you need join the channel before you read the messages: %v", err))
}
event, err := services.GetEvent(channel, uint(id))
event, err := services.GetEvent(channel.ID, uint(id))
if err != nil {
return fiber.NewError(fiber.StatusNotFound, err.Error())
}