mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-04 02:04:06 +00:00
Co-authored-by: alejandrobailo <alejandrobailo94@gmail.com>
17 lines
449 B
TypeScript
17 lines
449 B
TypeScript
"use client";
|
|
|
|
import { completeRegistryCredentialValidation } from "@/lib/registry/credential-result";
|
|
import type { TaskKindHandler, WatchedTask } from "@/store/task-watcher/store";
|
|
|
|
const complete = async (task: WatchedTask) => {
|
|
await completeRegistryCredentialValidation(
|
|
task,
|
|
task.meta.priorConfigured === "true",
|
|
);
|
|
};
|
|
|
|
export const registryCredentialTaskHandler: TaskKindHandler = {
|
|
onReady: complete,
|
|
onError: complete,
|
|
};
|