We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1b930 commit 70cc30dCopy full SHA for 70cc30d
src/main/java/io/supertokens/cronjobs/deleteExpiredDashboardSessions/DeleteExpiredDashboardSessions.java
@@ -20,6 +20,7 @@
20
import io.supertokens.ResourceDistributor;
21
import io.supertokens.cronjobs.CronTask;
22
import io.supertokens.cronjobs.CronTaskTest;
23
+import io.supertokens.pluginInterface.STORAGE_TYPE;
24
import io.supertokens.storageLayer.StorageLayer;
25
26
public class DeleteExpiredDashboardSessions extends CronTask {
@@ -41,6 +42,9 @@ public static DeleteExpiredDashboardSessions getInstance(Main main){
41
42
43
@Override
44
protected void doTask() throws Exception {
45
+ if (StorageLayer.getStorage(this.main).getType() != STORAGE_TYPE.SQL) {
46
+ return;
47
+ }
48
StorageLayer.getDashboardStorage(this.main).revokeExpiredSessions();
49
50
}
0 commit comments