Fix async defs and add events to import
This commit is contained in:
parent
f80d8b0751
commit
68c2fd8d23
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user