5 lines
275 B
Python
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
|
|
) |