diff --git a/consumer_api/views/sync_view.py b/consumer_api/views/sync_view.py index 071da44..e0dc13a 100644 --- a/consumer_api/views/sync_view.py +++ b/consumer_api/views/sync_view.py @@ -11,9 +11,9 @@ class SyncView(FlaskView): remote_uuid = request.json['uuid'] remote_ip = request.remote_addr - cust_key = f"customer_{remote_uuid}" + cust_key = f"consumer_{remote_uuid}" - last_known_info = json.loads((redis_client.get("cust_key") or b"{}").decode('utf-8')) + last_known_info = json.loads((redis_client.get(cust_key) or b"{}").decode('utf-8')) if not last_known_info: current_app.logger.info(f"New consumer registered (unknown UUID): {remote_uuid} at {remote_ip}")