Spaces:
Running
Running
axeronis commited on
Commit ·
3ebcffb
1
Parent(s): 01bc36c
Fix: Remove broken import causing notification failures
Browse files- Removed incorrect import 'send_telegram_message' from app.api.deps
- Function correctly imported from app.api.webhook inside _send_telegram (lazy import)
- Fixes production error: 'cannot import name send_telegram_message'
- Order and booking notifications now work correctly
backend/app/services/notification.py
CHANGED
|
@@ -2,7 +2,6 @@ from typing import Optional, Dict, Any
|
|
| 2 |
from app.models.tenant import Tenant
|
| 3 |
from app.models.order import Order
|
| 4 |
from app.models.booking import Appointment
|
| 5 |
-
from app.api.deps import send_telegram_message # Assuming this is available or we import the util
|
| 6 |
import logging
|
| 7 |
|
| 8 |
logger = logging.getLogger(__name__)
|
|
|
|
| 2 |
from app.models.tenant import Tenant
|
| 3 |
from app.models.order import Order
|
| 4 |
from app.models.booking import Appointment
|
|
|
|
| 5 |
import logging
|
| 6 |
|
| 7 |
logger = logging.getLogger(__name__)
|