update
This commit is contained in:
parent
4b70022ad6
commit
bd9e81bf78
@ -1056,4 +1056,4 @@ WHERE amoContact.AccountID = $1 AND amoContact.AmoID IN (SELECT AmoID FROM getAm
|
||||
INSERT INTO amoContact (AccountID, AmoID, Field) VALUES ($1, $2, $3) RETURNING AmoID;
|
||||
|
||||
-- name: UpdateAmoContact :exec
|
||||
UPDATE amoContact SET Field = $1 WHERE ID = $2;
|
||||
UPDATE amoContact SET Field = $1,AmoID=$3 WHERE ID = $2;
|
||||
|
@ -1125,7 +1125,7 @@ func (r *AmoRepository) InsertContactAmo(ctx context.Context, val model.ContactA
|
||||
return amoID, err
|
||||
}
|
||||
|
||||
func (r *AmoRepository) UpdateAmoContact(ctx context.Context, id int64, field string) error {
|
||||
func (r *AmoRepository) UpdateAmoContact(ctx context.Context, id int64, field string, newAmoID int32) error {
|
||||
err := r.queries.UpdateAmoContact(ctx, sqlcgen.UpdateAmoContactParams{
|
||||
Field: field,
|
||||
ID: id,
|
||||
|
Loading…
Reference in New Issue
Block a user