Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
fix TTL for item insert
Browse files Browse the repository at this point in the history
  • Loading branch information
circuitsacul committed Aug 10, 2023
1 parent 08aebea commit 6b12a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detaorm/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async def insert_item(
expire_at: The time at which the item should expire (UTC timetamp).
expire_in: The time until this item should expire."""

json = _with_ttl({"item": item}, expire_at, expire_in)
json = {"item": _with_ttl(item, expire_at, expire_in)}
url = self._build_url(base_name, "items")
resp = await self._session.post(url, json=json)
return t.cast(RAW_ITEM, await resp.json())
Expand Down

0 comments on commit 6b12a0c

Please sign in to comment.