diff --git a/app/services/cmd_service/cmd_service.go b/app/services/cmd_service/cmd_service.go index be98468..8491535 100644 --- a/app/services/cmd_service/cmd_service.go +++ b/app/services/cmd_service/cmd_service.go @@ -131,7 +131,7 @@ func ListToRep(list []croncmdmodel.CronCmd) (cmdList []backend.CmdListResponse, dbMap, err := repository.InAndToMap[crondbmodel.CronDb, int](crondbmodel.GetInstance().GetDb(), "db_id", dbIdList) userMap, err := repository.InAndToMap[cronusermodel.CronUser, int](cronusermodel.GetInstance().GetDb(), "user_id", userIdList) - channelMap, err := repository.InAndToMap[cronreportchannelmodel.CronReportChannel, int](cronreportchannelmodel.GetInstance().GetDb(), "channel_id", channelList) + channelMap, err := repository.InAndToMap[cronreportchannelmodel.CronReportChannel, int](cronreportchannelmodel.GetInstance().GetDb(), "report_channel_id", channelList) cmdList = make([]backend.CmdListResponse, len(list)) linq.From(list).SelectT(func(in croncmdmodel.CronCmd) (d backend.CmdListResponse) { d.ResponseFromDb(in)