Skip to content

Commit 9b11aaa

Browse files
authored
Fix timestamps in Audit Search API (#399)
1 parent 328008c commit 9b11aaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

descope/management/audit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ def search(
8787
if text is not None:
8888
body["text"] = text
8989
if from_ts is not None:
90-
body["from"] = from_ts.timestamp() * 1000
90+
body["from"] = int(from_ts.timestamp() * 1000)
9191
if to_ts is not None:
92-
body["to"] = to_ts.timestamp() * 1000
92+
body["to"] = int(to_ts.timestamp() * 1000)
9393

9494
response = self._auth.do_post(
9595
MgmtV1.audit_search,

0 commit comments

Comments
 (0)