🐛 Fix delete channel remain channel member
This commit is contained in:
parent
9dacb152de
commit
1c92ea36e3
@ -300,6 +300,7 @@ func DeleteChannel(channel models.Channel) error {
|
||||
UnsubscribeAllWithChannels(channel.ID)
|
||||
|
||||
database.C.Where("channel_id = ?", channel.ID).Delete(&models.Event{})
|
||||
database.C.Where("channel_id = ?", channel.ID).Delete(&models.ChannelMember{})
|
||||
|
||||
cacheManager := cache.New[any](localCache.S)
|
||||
marshal := marshaler.New(cacheManager)
|
||||
|
Loading…
x
Reference in New Issue
Block a user