Replace AppApiHostname with WorkflowHostname in AnalyticsDatabaseService and DatabaseService

This commit is contained in:
Simon Larsen
2024-09-18 14:18:52 +01:00
parent 1091801ca7
commit 1cdf9ecdf1
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { AppApiHostname } from "../EnvironmentConfig";
import { WorkflowHostname } from "../EnvironmentConfig";
import ClickhouseDatabase, {
ClickhouseAppInstance,
ClickhouseClient,
@@ -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}`,
),

View File

@@ -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";
@@ -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}`,
),