rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61)
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61) Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com> Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
This commit was merged in pull request #61.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Prisma } from "@capakraken/db";
|
||||
import { CommercialTermsSchema, PermissionKey, UpdateCommercialTermsSchema } from "@capakraken/shared";
|
||||
import type { Prisma } from "@nexus/db";
|
||||
import { CommercialTermsSchema, PermissionKey, UpdateCommercialTermsSchema } from "@nexus/shared";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { z } from "zod";
|
||||
import { controllerProcedure, managerProcedure, requirePermission } from "../trpc.js";
|
||||
@@ -26,9 +26,7 @@ export const estimateCommercialProcedures = {
|
||||
|
||||
const version = estimate.versions[0]!;
|
||||
const raw = version.commercialTerms;
|
||||
const terms = raw
|
||||
? CommercialTermsSchema.parse(raw)
|
||||
: CommercialTermsSchema.parse({});
|
||||
const terms = raw ? CommercialTermsSchema.parse(raw) : CommercialTermsSchema.parse({});
|
||||
|
||||
return { versionId: version.id, terms };
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user