From 19bfc85659a844196dbc532c40fed525a1c5f9f8 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Tue, 24 Sep 2024 17:27:55 +0530 Subject: [PATCH] fix: stats --- .../io/supertokens/storage/postgresql/queries/OAuthQueries.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/supertokens/storage/postgresql/queries/OAuthQueries.java b/src/main/java/io/supertokens/storage/postgresql/queries/OAuthQueries.java index 718dbc1d..3775a02b 100644 --- a/src/main/java/io/supertokens/storage/postgresql/queries/OAuthQueries.java +++ b/src/main/java/io/supertokens/storage/postgresql/queries/OAuthQueries.java @@ -226,7 +226,7 @@ public static int countTotalNumberOfM2MTokensAlive(Start start, AppIdentifier ap " WHERE app_id = ? AND exp > ?"; return execute(start, QUERY, pst -> { pst.setString(1, appIdentifier.getAppId()); - pst.setLong(2, System.currentTimeMillis()); + pst.setLong(2, System.currentTimeMillis()/1000); }, result -> { if (result.next()) { return result.getInt("c");