Merge pull request 'RELIMIT' (#27) from RELIMIt into main
Deploy to S3 / deploy (push) Successful in 37s Details

Reviewed-on: #27
pull/28/head^2
ahmed.mujtaba 2026-08-25 12:03:10 +00:00
commit 19d302325b
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ class EmailReplyBody(BaseModel):
@router.get("/email/fetch")
async def fetch_email(
top:int=Query(100),
top:int=Query(100,ge=1,le=100),
skip:int=Query(0,ge=0),
test_on: bool = Query(True),
token: str | None = Query(None),
@ -100,7 +100,7 @@ async def fetch_email(
@router.post("/email/sync")
async def start_email_sync(
top:int=Query(100),
top:int=Query(100,ge=1,le=100),
skip:int=Query(0,ge=0),
test_on: bool = Query(True),
current_user: dict = Depends(require_permission(PermissionTag.INBOX_EDIT)),

View File

@ -34,7 +34,7 @@ triage_logger=logging.getLogger("inbox.triage")
# One statement, one round trip — but an unbounded id list is still a client-supplied
# IN () of arbitrary size, so the batch is capped and the route answers 413.
MAX_BULK_READ_IDS=500
MAX_BULK_READ_IDS=100
class Email: