mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:56:44 +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;
|
environmentId: string;
|
||||||
projectId?: string | null;
|
projectId?: string | null;
|
||||||
}): Promise<{ serviceDomains: RailwayServiceDomainInfo[]; customDomains: RailwayServiceDomainInfo[] }> {
|
}): Promise<{ serviceDomains: RailwayServiceDomainInfo[]; customDomains: RailwayServiceDomainInfo[] }> {
|
||||||
|
if (!opts.projectId) {
|
||||||
|
throw new Error("projectId is required to list Railway service domains");
|
||||||
|
}
|
||||||
|
|
||||||
const query = `
|
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) {
|
domains(environmentId: $environmentId, serviceId: $serviceId, projectId: $projectId) {
|
||||||
serviceDomains {
|
serviceDomains {
|
||||||
id
|
id
|
||||||
|
|
@ -375,7 +379,7 @@ export async function listRailwayServiceDomains(opts: {
|
||||||
{
|
{
|
||||||
environmentId: opts.environmentId,
|
environmentId: opts.environmentId,
|
||||||
serviceId: opts.serviceId,
|
serviceId: opts.serviceId,
|
||||||
projectId: opts.projectId ?? null,
|
projectId: opts.projectId,
|
||||||
},
|
},
|
||||||
opts.token,
|
opts.token,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue