update sqlc gen
This commit is contained in:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user