Skip to content

Commit

Permalink
Replace AppApiHostname with WorkflowHostname in AnalyticsDatabaseServ…
Browse files Browse the repository at this point in the history
…ice and DatabaseService
  • Loading branch information
simlarsen committed Sep 18, 2024
1 parent 1091801 commit 1cdf9ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Common/Server/Services/AnalyticsDatabaseService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppApiHostname } from "../EnvironmentConfig";
import { WorkflowHostname } from "../EnvironmentConfig";
import ClickhouseDatabase, {
ClickhouseAppInstance,
ClickhouseClient,
Expand Down Expand Up @@ -1045,9 +1045,9 @@ export default class AnalyticsDatabaseService<
API.post(
new URL(
Protocol.HTTP,
AppApiHostname,
WorkflowHostname,
new Route(
`/api${WorkflowRoute.toString()}/analytics-model/${projectId.toString()}/${Text.pascalCaseToDashes(
`/${WorkflowRoute.toString()}/analytics-model/${projectId.toString()}/${Text.pascalCaseToDashes(
this.getModel().tableName!,
)}/${triggerType}`,
),
Expand Down
6 changes: 3 additions & 3 deletions Common/Server/Services/DatabaseService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AppApiHostname, EncryptionSecret } from "../EnvironmentConfig";
import { EncryptionSecret, WorkflowHostname } from "../EnvironmentConfig";
import PostgresAppInstance from "../Infrastructure/PostgresDatabase";
import ClusterKeyAuthorization from "../Middleware/ClusterKeyAuthorization";
import CountBy from "../Types/Database/CountBy";
Expand Down Expand Up @@ -526,9 +526,9 @@ class DatabaseService<TBaseModel extends BaseModel> extends BaseService {
API.post(
new URL(
Protocol.HTTP,
AppApiHostname,
WorkflowHostname,
new Route(
`/api${WorkflowRoute.toString()}/model/${projectId.toString()}/${Text.pascalCaseToDashes(
`/${WorkflowRoute.toString()}/model/${projectId.toString()}/${Text.pascalCaseToDashes(
this.getModel().tableName!,
)}/${triggerType}`,
),
Expand Down

0 comments on commit 1cdf9ec

Please sign in to comment.