Skip to content

Commit

Permalink
Fixing constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Sep 29, 2021
1 parent 23d6e50 commit 0b4b270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devices_module/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def get_by_key(self, connector_key: str) -> ConnectorItem or None:
@orm.db_session
def create_from_exchange(self, routing_key: RoutingKey, data: Dict) -> bool:
"""Process received connector message from exchange when entity was created"""
if routing_key != RoutingKey.CONNECTOR_ENTITY_CREATED:
if routing_key != RoutingKey.CONNECTORS_ENTITY_CREATED:
return False

if self.__items is None:
Expand All @@ -959,7 +959,7 @@ def create_from_exchange(self, routing_key: RoutingKey, data: Dict) -> bool:
@orm.db_session
def update_from_exchange(self, routing_key: RoutingKey, data: Dict) -> bool:
"""Process received connector message from exchange when entity was updated"""
if routing_key != RoutingKey.CONNECTOR_ENTITY_UPDATED:
if routing_key != RoutingKey.CONNECTORS_ENTITY_UPDATED:
return False

if self.__items is None:
Expand Down Expand Up @@ -998,7 +998,7 @@ def update_from_exchange(self, routing_key: RoutingKey, data: Dict) -> bool:
@orm.db_session
def delete_from_exchange(self, routing_key: RoutingKey, data: Dict) -> bool:
"""Process received connector message from exchange when entity was updated"""
if routing_key != RoutingKey.CONNECTOR_ENTITY_DELETED:
if routing_key != RoutingKey.CONNECTORS_ENTITY_DELETED:
return False

if data.get("id") in self.__items:
Expand Down

0 comments on commit 0b4b270

Please sign in to comment.