Skip to content

Commit 6057985

Browse files
committed
2 parents 85ad25d + ab38d88 commit 6057985

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

cli/jar/cli.jar

0 Bytes
Binary file not shown.

downloader/jar/downloader.jar

0 Bytes
Binary file not shown.

ee/jar/ee.jar

0 Bytes
Binary file not shown.

jar/core-9.1.0.jar

-9 Bytes
Binary file not shown.

src/main/java/io/supertokens/cronjobs/telemetry/Telemetry.java

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,20 @@ protected void doTaskPerApp(AppIdentifier app) throws Exception {
9999
json.addProperty("appId", app.getAppId());
100100
json.addProperty("connectionUriDomain", app.getConnectionUriDomain());
101101

102+
{ // website and API domains
103+
String websiteDomain = Multitenancy.getWebsiteDomain(
104+
StorageLayer.getStorage(app.getAsPublicTenantIdentifier(), main), app);
105+
String apiDomain = Multitenancy.getAPIDomain(
106+
StorageLayer.getStorage(app.getAsPublicTenantIdentifier(), main), app);
107+
108+
if (websiteDomain != null) {
109+
json.addProperty("websiteDomain", websiteDomain);
110+
}
111+
if (apiDomain != null) {
112+
json.addProperty("apiDomain", apiDomain);
113+
}
114+
}
115+
102116
if (StorageLayer.getBaseStorage(main).getType() == STORAGE_TYPE.SQL) {
103117
{ // Users count across all tenants
104118
Storage[] storages = StorageLayer.getStoragesForApp(main, app);
@@ -137,19 +151,6 @@ protected void doTaskPerApp(AppIdentifier app) throws Exception {
137151
json.add("maus", mauArr);
138152
}
139153

140-
{ // website and API domains
141-
String websiteDomain = Multitenancy.getWebsiteDomain(
142-
StorageLayer.getStorage(app.getAsPublicTenantIdentifier(), main), app);
143-
String apiDomain = Multitenancy.getAPIDomain(
144-
StorageLayer.getStorage(app.getAsPublicTenantIdentifier(), main), app);
145-
146-
if (websiteDomain != null) {
147-
json.addProperty("websiteDomain", websiteDomain);
148-
}
149-
if (apiDomain != null) {
150-
json.addProperty("apiDomain", apiDomain);
151-
}
152-
}
153154
} else {
154155
json.addProperty("usersCount", -1);
155156
json.add("dashboardUserEmails", new JsonArray());

0 commit comments

Comments
 (0)