🔊 Add verbose logging to new event notifying

This commit is contained in:
LittleSheep 2024-12-08 12:04:40 +08:00
parent a78fff8897
commit 8bf45bdefe

View File

@ -83,7 +83,11 @@ func NewEvent(event models.Event) (models.Event, error) {
return event, nil
}
event, _ = GetEvent(event.Channel, event.ID)
event, err := GetEvent(event.Channel, event.ID)
if err != nil {
log.Error().Err(err).Msg("Failed to fetch event, the notifying of new event was terminated...")
return event, err
}
idxList := lo.Map(members, func(item models.ChannelMember, index int) uint64 {
return uint64(item.AccountID)
})