add drive url to some methods where it need

This commit is contained in:
Pavel 2024-06-08 18:03:18 +03:00
parent 4f688b5bc8
commit 7e16f4547e

@ -93,6 +93,7 @@ func (r *AmoRepository) GetCurrentAccount(ctx context.Context, accountID string)
Subdomain: row.Subdomain, Subdomain: row.Subdomain,
Amouserid: row.Amouserid, Amouserid: row.Amouserid,
Country: row.Country, Country: row.Country,
DriveURL: row.Driveurl,
} }
return &user, nil return &user, nil
@ -110,6 +111,7 @@ func (r *AmoRepository) CreateAccount(ctx context.Context, accountID string, use
Subdomain: userInfo.Subdomain, Subdomain: userInfo.Subdomain,
Amouserid: userInfo.Amouserid, Amouserid: userInfo.Amouserid,
Country: userInfo.Country, Country: userInfo.Country,
Driveurl: userInfo.DriveURL,
}) })
if err != nil { if err != nil {
@ -1065,6 +1067,7 @@ func (r *AmoRepository) GettingAmoUsersTrueResults(ctx context.Context) ([]model
PerformerName: row.PerformerName, PerformerName: row.PerformerName,
SubDomain: row.Subdomain, SubDomain: row.Subdomain,
QuizAccountID: row.Accountid_2, QuizAccountID: row.Accountid_2,
DriveURL: row.Driveurl,
} }
results = append(results, result) results = append(results, result)