fix: parse since param to datetime for asyncpg compatibility

asyncpg requires datetime objects, not strings, for timestamptz params.
Also use Z suffix in tests to avoid URL-encoding issues with +00:00.
This commit is contained in:
Viktor Barzin 2026-03-14 13:13:48 +00:00
parent 0a4aed9e1b
commit e08486f2bd
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 5 additions and 4 deletions

View file

@ -349,7 +349,7 @@ async def test_sync_incremental_with_since(client):
async with ac:
resp = await ac.get(
"/api/memories/sync?since=2026-03-14T10:00:00+00:00",
"/api/memories/sync?since=2026-03-14T10:00:00Z",
headers={"Authorization": "Bearer test-key"},
)
@ -374,7 +374,7 @@ async def test_sync_includes_soft_deleted_with_since(client):
async with ac:
resp = await ac.get(
"/api/memories/sync?since=2026-03-14T10:00:00+00:00",
"/api/memories/sync?since=2026-03-14T10:00:00Z",
headers={"Authorization": "Bearer test-key"},
)