Skip to content

Commit 1cdf9ec

Browse files
committed
Replace AppApiHostname with WorkflowHostname in AnalyticsDatabaseService and DatabaseService
1 parent 1091801 commit 1cdf9ec

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Common/Server/Services/AnalyticsDatabaseService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AppApiHostname } from "../EnvironmentConfig";
1+
import { WorkflowHostname } from "../EnvironmentConfig";
22
import ClickhouseDatabase, {
33
ClickhouseAppInstance,
44
ClickhouseClient,
@@ -1045,9 +1045,9 @@ export default class AnalyticsDatabaseService<
10451045
API.post(
10461046
new URL(
10471047
Protocol.HTTP,
1048-
AppApiHostname,
1048+
WorkflowHostname,
10491049
new Route(
1050-
`/api${WorkflowRoute.toString()}/analytics-model/${projectId.toString()}/${Text.pascalCaseToDashes(
1050+
`/${WorkflowRoute.toString()}/analytics-model/${projectId.toString()}/${Text.pascalCaseToDashes(
10511051
this.getModel().tableName!,
10521052
)}/${triggerType}`,
10531053
),

Common/Server/Services/DatabaseService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AppApiHostname, EncryptionSecret } from "../EnvironmentConfig";
1+
import { EncryptionSecret, WorkflowHostname } from "../EnvironmentConfig";
22
import PostgresAppInstance from "../Infrastructure/PostgresDatabase";
33
import ClusterKeyAuthorization from "../Middleware/ClusterKeyAuthorization";
44
import CountBy from "../Types/Database/CountBy";
@@ -526,9 +526,9 @@ class DatabaseService<TBaseModel extends BaseModel> extends BaseService {
526526
API.post(
527527
new URL(
528528
Protocol.HTTP,
529-
AppApiHostname,
529+
WorkflowHostname,
530530
new Route(
531-
`/api${WorkflowRoute.toString()}/model/${projectId.toString()}/${Text.pascalCaseToDashes(
531+
`/${WorkflowRoute.toString()}/model/${projectId.toString()}/${Text.pascalCaseToDashes(
532532
this.getModel().tableName!,
533533
)}/${triggerType}`,
534534
),

0 commit comments

Comments
 (0)