Update routes/approvals.py
Browse files- routes/approvals.py +2 -3
routes/approvals.py
CHANGED
@@ -3,7 +3,7 @@ import logging
|
|
3 |
import aiohttp
|
4 |
import asyncio
|
5 |
from fastapi import APIRouter, HTTPException, Header
|
6 |
-
from typing import Dict, Any
|
7 |
from functools import lru_cache
|
8 |
from pydantic import BaseModel
|
9 |
import requests
|
@@ -11,13 +11,12 @@ from collections import defaultdict
|
|
11 |
|
12 |
router = APIRouter()
|
13 |
|
14 |
-
|
15 |
class ApproveAccountRequest(BaseModel):
|
16 |
user_id: str
|
17 |
|
18 |
class RejectAccountRequest(BaseModel):
|
19 |
user_id: str
|
20 |
-
reason: str
|
21 |
|
22 |
# Configuração do Supabase
|
23 |
SUPABASE_URL = "https://ussxqnifefkgkaumjann.supabase.co"
|
|
|
3 |
import aiohttp
|
4 |
import asyncio
|
5 |
from fastapi import APIRouter, HTTPException, Header
|
6 |
+
from typing import Dict, Any, Optional
|
7 |
from functools import lru_cache
|
8 |
from pydantic import BaseModel
|
9 |
import requests
|
|
|
11 |
|
12 |
router = APIRouter()
|
13 |
|
|
|
14 |
class ApproveAccountRequest(BaseModel):
|
15 |
user_id: str
|
16 |
|
17 |
class RejectAccountRequest(BaseModel):
|
18 |
user_id: str
|
19 |
+
reason: Optional[str] = None
|
20 |
|
21 |
# Configuração do Supabase
|
22 |
SUPABASE_URL = "https://ussxqnifefkgkaumjann.supabase.co"
|