Skip to content

Commit 7514a87

Browse files
committed
chore(evohub): merge develop to pick up the CI env fix from #2635
2 parents 489febf + c352731 commit 7514a87

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎.github/workflows/check_code_quality.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ jobs:
3737

3838
- name: Generate Prisma client
3939
run: npm run db:generate
40+
env:
41+
# prisma.config.ts resolves datasource.url from this variable when the Prisma CLI
42+
# loads, and there is no .env on the runner. `prisma generate` never opens a
43+
# connection, so any syntactically valid URI works.
44+
DATABASE_PROVIDER: postgresql
45+
DATABASE_CONNECTION_URI: postgresql://user:pass@localhost:5432/evolution?schema=public
4046

4147
- name: Check build
4248
run: npm run build

‎src/api/integrations/channel/evohub/evohub.controlplane.router.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class EvoHubControlPlaneRouter extends RouterBroker {
3737
});
3838

3939
this.router.get('/evohub/channels/:id', guard, async (req, res) => {
40-
res.json(await evoHubClient.getChannel(String(req.params.id)));
40+
res.json(await evoHubClient.getChannel(req.params.id as string));
4141
});
4242

4343
this.router.get('/evohub/available-channels', guard, async (_req, res) => {
@@ -129,7 +129,7 @@ export class EvoHubControlPlaneRouter extends RouterBroker {
129129
});
130130

131131
this.router.post('/evohub/channels/:id/meta-connect', guard, async (req, res) => {
132-
res.json(await evoHubClient.connectToMeta(String(req.params.id), req.body));
132+
res.json(await evoHubClient.connectToMeta(req.params.id as string, req.body));
133133
});
134134
}
135135
}

0 commit comments

Comments
 (0)