mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
10 lines
274 B
Python
10 lines
274 B
Python
from events.tenant_event import tenant_was_created
|
|
from services.provider_service import ProviderService
|
|
|
|
|
|
@tenant_was_created.connect
|
|
def handle(sender, **kwargs):
|
|
tenant = sender
|
|
if tenant.status == 'normal':
|
|
ProviderService.create_system_provider(tenant)
|