abs-utils 0.2.2__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: abs-utils
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: AutoBridge Systems Utility Library
5
5
  Author: AutoBridgeSystems
6
6
  Author-email: info@autobridgesystems.com
@@ -4,7 +4,7 @@ from typing import Any, Callable
4
4
  from .azure_service_bus import AzureServiceBus
5
5
  from uuid import uuid4
6
6
  import json
7
-
7
+ from ..constants import ON_RECORD_UPDATION
8
8
  def azure_event_decorator(event_type: str):
9
9
  """
10
10
  A decorator that sends a message to Azure Service Bus after the function execution.
@@ -44,6 +44,9 @@ def azure_event_decorator(event_type: str):
44
44
 
45
45
  # Execute the original function
46
46
  result = await func(*args, **kwargs)
47
+
48
+ if event_type != ON_RECORD_UPDATION:
49
+ data = result
47
50
 
48
51
  event_payload = {
49
52
  "event_id": str(uuid4()),
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "abs-utils"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "AutoBridge Systems Utility Library"
5
5
  authors = [
6
6
  {name = "AutoBridgeSystems", email = "info@autobridgesystems.com"}
File without changes