update amo repo method

This commit is contained in:
Pavel 2024-04-30 00:28:44 +03:00
parent 283cc69264
commit 0a8ce824fe
2 changed files with 12 additions and 12 deletions

@ -215,5 +215,5 @@ type CheckUserUtm struct {
Quizid int32 `json:"QuizID"` Quizid int32 `json:"QuizID"`
Accountid int32 `json:"AccountID"` Accountid int32 `json:"AccountID"`
Name string `json:"Name"` Name string `json:"Name"`
Status bool AmoFieldName string
} }

@ -767,7 +767,7 @@ func (r *AmoRepository) CheckUserUtms(ctx context.Context, ids []int32) ([]model
Quizid: row.Quizid, Quizid: row.Quizid,
Accountid: row.Accountid, Accountid: row.Accountid,
Name: row.Name, Name: row.Name,
Status: row.Status, AmoFieldName: row.Name_2.String,
} }
utmS = append(utmS, utm) utmS = append(utmS, utm)