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

pull/10658/head
cmeng 1 year ago committed by GitHub
parent 0b5b8971b1
commit fffc7b364e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save