🐛 Fix delete channel remain channel member

This commit is contained in:
LittleSheep 2025-03-18 00:28:20 +08:00
parent 9dacb152de
commit 1c92ea36e3

View File

@ -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)