fix: fix the wrong message when channel is deleted

This commit is contained in:
JustSong
2023-06-29 11:27:34 +08:00
parent f5d3b8969f
commit f158d754ef
3 changed files with 10 additions and 2 deletions
+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
}