feat: Update and Delete deployments with cascade, also lint fix #83
Annotations
4 errors and 1 warning
Property 'byType' does not exist on type 'DecoratedProcedureRecord<BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; targetProvider: { id: (id: string) => Promise<boolean>; target: { id: (id: string) => Promise<boolean>; }; }; system: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; environment: { id: (id: string) => Promise<boolean>; }; deployment: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; release: { id: (id: string) => Promise<boolean>; }; }; }; }; }; }; meta: Meta; errorShape: { data: { zodError: typeToFlattenedError<any, string> | null; code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "UNSUPPORTED_MEDIA_TYPE" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string | undefined; stack?: string | undefined; }; message: string; code: TRPC_ERROR_CODE_NUMBER; }; transformer: true; }, DecorateCreateRouterOptions<{ deployment: BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; targetProvider: { id: (id: string) => Promise<boolean>; target: { id: (id: string) => Promise<boolean>; }; }; system: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; environment: { id: (id: string) => Promise<boolean>; }; deployment: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; release: { id: (id: string) => Promise<boolean>; }; }; }; }; }; }; meta: Meta; errorShape: { data: { zodError: typeToFlattenedError<any, string> | null; code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "UNSUPPORTED_MEDIA_TYPE" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string | undefined; stack?: string | undefined; }; message: string; code: TRPC_ERROR_CODE_NUMBER; }; transformer: true; }, DecorateCreateRouterOptions<{ variable: BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; targetProvider: { id: (id: string) => Promise<boolean>; target: { id: (id: string) => Promise<boolean>; }; }; system: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; environment: { id: (id: string) => Promise<boolean>; }; deployment: { id: (id: string) => Promise<boolean>; slug: (id: string) => Promise<boolean>; release: { id: (id: string) => Promise<boolean>; }; }; }; }; }; }; meta: Meta; errorShape: { data: { zodError: typeToFlattenedError<any, string> | null; code: "PARSE_ERROR" | "BAD_REQUEST" | "INTERNAL_SERVER_ERROR" | "NOT_IMPLEMENTED" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "METHOD_NOT_SUPPORTED" | "TIMEOUT" | "CONFLICT" | "PRECONDITION_FAILED" | "UNSUPPORTED_MEDIA_TYPE" | "PAYLOAD_TOO_LARGE" | "UNPROCESSABLE_CONTENT" | "TOO_MANY_REQUESTS" | "CLIENT_CLOSED_REQUEST"; httpStatus: number; path?: string | undefined; stack?: string | undefined; }; message: string; code: TRPC_ERROR_CODE_NUMBER; }; transformer: true; }, DecorateCreateRouterOptions<{ value: BuiltRouter<{ ctx: { session: Session | null; db: NodePgDatabase<typeof import("/home/runner/work/ctrlplane/ctrlplane/packages/db/src/schema/index")>; accessQuery: () => { workspace: { id: (id: strin
|
|
|
|
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
This job failed
Loading