fix: fix the wrong message when channel is deleted

This commit is contained in:
JustSong
2023-06-29 11:27:34 +08:00
parent 1c82b06f35
commit aabc546691
3 changed files with 10 additions and 2 deletions

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
}