mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 10:16:43 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
6d93d69b29
commit
26980f813a
1 changed files with 6 additions and 2 deletions
|
|
@ -347,8 +347,12 @@ export async function listRailwayServiceDomains(opts: {
|
|||
environmentId: string;
|
||||
projectId?: string | null;
|
||||
}): Promise<{ serviceDomains: RailwayServiceDomainInfo[]; customDomains: RailwayServiceDomainInfo[] }> {
|
||||
if (!opts.projectId) {
|
||||
throw new Error("projectId is required to list Railway service domains");
|
||||
}
|
||||
|
||||
const query = `
|
||||
query Domains($environmentId: String!, $serviceId: String!, $projectId: String) {
|
||||
query Domains($environmentId: String!, $serviceId: String!, $projectId: String!) {
|
||||
domains(environmentId: $environmentId, serviceId: $serviceId, projectId: $projectId) {
|
||||
serviceDomains {
|
||||
id
|
||||
|
|
@ -375,7 +379,7 @@ export async function listRailwayServiceDomains(opts: {
|
|||
{
|
||||
environmentId: opts.environmentId,
|
||||
serviceId: opts.serviceId,
|
||||
projectId: opts.projectId ?? null,
|
||||
projectId: opts.projectId,
|
||||
},
|
||||
opts.token,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue