Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/check_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ jobs:

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

- name: Check build
run: npm run build
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class EvoHubControlPlaneRouter extends RouterBroker {
});

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

this.router.get('/evohub/available-channels', guard, async (_req, res) => {
Expand Down Expand Up @@ -114,7 +114,7 @@ export class EvoHubControlPlaneRouter extends RouterBroker {
});

this.router.post('/evohub/channels/:id/meta-connect', guard, async (req, res) => {
res.json(await evoHubClient.connectToMeta(req.params.id, req.body));
res.json(await evoHubClient.connectToMeta(req.params.id as string, req.body));
});
}
}
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export default defineConfig({
...(options.alias ?? {}),
'@prisma/client': path.resolve(process.cwd(), 'prisma/generated/client/client.ts'),
};
},
define: {
__LICENSE_ENDPOINT_ENCODED__: licenseEndpointEncoded,
__LICENSE_ENDPOINT_XOR_KEY__: licenseEndpointXorKey,
Expand Down
Loading