Skip to content

Commit

Permalink
чиник анлинк сущности
Browse files Browse the repository at this point in the history
  • Loading branch information
karik741 committed Dec 19, 2023
1 parent 662b6a1 commit b8026ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amocrm/v2/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def link(self, for_entity, to_entity, main=False, metadata=None):
return self._set("link", for_entity, to_entity, main=main, metadata=metadata)

def unlink(self, for_entity, to_entity):
return self._set("link", for_entity, to_entity)
return self._set("unlink", for_entity, to_entity)

def _set(self, direction, for_entity, to_entity, main=False, metadata=None):
path = "{}/{}/{}".format(for_entity._path, for_entity.id, direction)
Expand Down

0 comments on commit b8026ff

Please sign in to comment.