From 2d338859b1bd7e1317af0c5b2d10cf5f0af9d979 Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Tue, 12 Mar 2024 17:44:48 +0100 Subject: [PATCH 1/2] feat: support merging last active times when linking users --- .../io/supertokens/pluginInterface/ActiveUsersSQLStorage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java b/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java index a093dc6a..c618a370 100644 --- a/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java @@ -25,4 +25,8 @@ public interface ActiveUsersSQLStorage extends ActiveUsersStorage, SQLStorage { /* Delete a user from active users table */ void deleteUserActive_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId) throws StorageQueryException; + void setUserActive_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId, long timestamp) + throws StorageQueryException; + long getLastActiveByUserId_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId) + throws StorageQueryException; } From d5989b0b4a6607d127cddc3fcf254a6ac9fc5c64 Mon Sep 17 00:00:00 2001 From: Sattvik Chakravarthy Date: Wed, 13 Mar 2024 19:04:32 +0530 Subject: [PATCH 2/2] fix: remove extra functions --- .../io/supertokens/pluginInterface/ActiveUsersSQLStorage.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java b/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java index c618a370..a093dc6a 100644 --- a/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/ActiveUsersSQLStorage.java @@ -25,8 +25,4 @@ public interface ActiveUsersSQLStorage extends ActiveUsersStorage, SQLStorage { /* Delete a user from active users table */ void deleteUserActive_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId) throws StorageQueryException; - void setUserActive_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId, long timestamp) - throws StorageQueryException; - long getLastActiveByUserId_Transaction(TransactionConnection con, AppIdentifier appIdentifier, String userId) - throws StorageQueryException; }