update sqlc gen

This commit is contained in:
Pavel 2024-06-12 18:38:45 +03:00
parent 5b621f8a9b
commit 6a7e3f9ea5

@ -3402,12 +3402,11 @@ func (q *Queries) TemplateCopy(ctx context.Context, arg TemplateCopyParams) (int
}
const updateAmoAccount = `-- name: UpdateAmoAccount :exec
UPDATE accountsAmo SET AmoID = $2, Name = $3, Subdomain = $4, Country = $5, DriveURL = $6 WHERE AccountID = $1 AND Deleted = false
UPDATE accountsAmo SET Name = $2, Subdomain = $3, Country = $4, DriveURL = $5 WHERE AccountID = $1 AND Deleted = false
`
type UpdateAmoAccountParams struct {
Accountid string `db:"accountid" json:"accountid"`
Amoid int32 `db:"amoid" json:"amoid"`
Name string `db:"name" json:"name"`
Subdomain string `db:"subdomain" json:"subdomain"`
Country string `db:"country" json:"country"`
@ -3417,7 +3416,6 @@ type UpdateAmoAccountParams struct {
func (q *Queries) UpdateAmoAccount(ctx context.Context, arg UpdateAmoAccountParams) error {
_, err := q.db.ExecContext(ctx, updateAmoAccount,
arg.Accountid,
arg.Amoid,
arg.Name,
arg.Subdomain,
arg.Country,