fix: fix the wrong message when channel is deleted

This commit is contained in:
JustSong committed 2023-06-29 11:27:34 +08:00
1 parent f5d3b8969f
commit f158d754ef
3 files changed
+10 -2

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ func GetRandomSatisfiedChannel(group string, model string) (*Channel, error) {
return nil, err
}
channel := Channel{}
channel.Id = ability.ChannelId
err = DB.First(&channel, "id = ?", ability.ChannelId).Error
return &channel, err
}