Marwan Alwali 263292f6be update
2025-11-04 00:50:06 +03:00

5 lines
275 B
Python

from .models import IntegrationLog
def log_event(*, tenant, channel:str, payload:dict, direction:str, status:str, ref:str=""):
return IntegrationLog.objects.create(
tenant=tenant, channel=channel, payload=payload, direction=direction, status=status, ref=ref
)