fix(container): Unable to create container with webhook EE-6313 (#10619)

pull/10658/head
cmeng 2023-11-17 14:35:47 +13:00 committed by GitHub
parent 0b5b8971b1
commit fffc7b364e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -313,10 +313,10 @@ async function createContainerWebhook(
} }
await createWebhook({ await createWebhook({
resourceId: containerId, ResourceId: containerId,
environmentId: environment.Id, EndpointID: environment.Id,
registryId, RegistryId: registryId,
webhookType: WebhookType.DockerContainer, WebhookType: WebhookType.DockerContainer,
}); });
} }

View File

@ -7,10 +7,10 @@ import { buildUrl } from './build-url';
import { Webhook, WebhookType } from './types'; import { Webhook, WebhookType } from './types';
interface CreateWebhookPayload { interface CreateWebhookPayload {
resourceId: string; ResourceId: string;
environmentId: EnvironmentId; EndpointID: EnvironmentId;
registryId?: RegistryId; RegistryId?: RegistryId;
webhookType: WebhookType; WebhookType: WebhookType;
} }
export async function createWebhook(payload: CreateWebhookPayload) { export async function createWebhook(payload: CreateWebhookPayload) {