🔊 Add verbose logging to new event notifying
This commit is contained in:
parent
a78fff8897
commit
8bf45bdefe
@ -83,7 +83,11 @@ func NewEvent(event models.Event) (models.Event, error) {
|
|||||||
return event, nil
|
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 {
|
idxList := lo.Map(members, func(item models.ChannelMember, index int) uint64 {
|
||||||
return uint64(item.AccountID)
|
return uint64(item.AccountID)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user