Fix async defs and add events to import

This commit is contained in:
Louis Abel 2024-12-22 00:22:14 -07:00
parent f80d8b0751
commit 68c2fd8d23
Signed by: label
GPG Key ID: 2A6975660E424560

View File

@ -17,7 +17,7 @@ import fastapi
from paho.mqtt.client import Client
# internal
from buzon.config import Configuration, Responder, EventPush
from buzon.config import Configuration, Responder, EventPush, EventFork, EventIssue
from buzon.util import loader, processor
# basic vars and calls
@ -108,7 +108,7 @@ async def push_event(event_data: EventPush):
response_model=Responder,
responses={201: {'model': Responder}, 400: {'model': Responder}}
)
async def fork_event(event_data: EventPush):
async def fork_event(event_data: EventFork):
"""
Fork events for repositories
@ -132,7 +132,7 @@ async def fork_event(event_data: EventPush):
response_model=Responder,
responses={201: {'model': Responder}, 400: {'model': Responder}}
)
async def issue_event(event_data: EventPush):
async def issue_event(event_data: EventIssue):
"""
Issues event for repositories that have issue activity