mirror of https://github.com/portainer/portainer
fix(container): Unable to create container with webhook EE-6313 (#10619)
parent
0b5b8971b1
commit
fffc7b364e
|
@ -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…
Reference in New Issue