refactor: update TypeScript SDK path and improve error handling in servizio service
This commit is contained in:
parent
985a302a05
commit
41d743c97f
4 changed files with 146 additions and 151 deletions
3
apps/infoalloggi/.vscode/settings.json
vendored
3
apps/infoalloggi/.vscode/settings.json
vendored
|
|
@ -17,5 +17,6 @@
|
|||
"username": "postgres"
|
||||
}
|
||||
],
|
||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
||||
"js/ts.tsdk.path": "node_modules\\typescript\\lib",
|
||||
"biome.lsp.trace.server": "verbose",
|
||||
}
|
||||
|
|
@ -121,9 +121,7 @@ const RinnovoLinkCard = ({
|
|||
key={data.id}
|
||||
>
|
||||
<Card
|
||||
className={cn(
|
||||
"transition-shadow hover:bg-muted/15 hover:shadow-md",
|
||||
)}
|
||||
className={cn("transition-shadow hover:bg-muted/15 hover:shadow-md")}
|
||||
>
|
||||
<CardHeader>
|
||||
<CardTitle className="group-hover:underline">
|
||||
|
|
@ -134,7 +132,6 @@ const RinnovoLinkCard = ({
|
|||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="flex flex-col flex-wrap gap-4 sm:flex-row sm:justify-between">
|
||||
|
||||
<div className="flex items-center gap-2 rounded-md text-muted-foreground group-hover:text-foreground">
|
||||
<span>Vai al rinnovo</span>
|
||||
<ArrowRight />
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ import {
|
|||
FormEditServizio,
|
||||
} from "~/forms/FormEditServizioAdmin";
|
||||
import { FormNewOrder } from "~/forms/FormNewOrdine";
|
||||
import { FormNewServizio, type FormValues } from "~/forms/FormNewServizio";
|
||||
import { FormServizio, type FormValues } from "~/forms/FormServizio";
|
||||
import { cn, formatCurrency } from "~/lib/utils";
|
||||
import { useTranslation } from "~/providers/I18nProvider";
|
||||
import { useServizio } from "~/providers/ServizioProvider";
|
||||
|
|
@ -696,7 +696,7 @@ const EditParametri = () => {
|
|||
</CredenzaDescription>
|
||||
</CredenzaHeader>
|
||||
<CredenzaBody className="max-h-[80vh] w-full max-w-3xl overflow-y-auto pb-5 sm:max-w-5xl">
|
||||
<FormNewServizio
|
||||
<FormServizio
|
||||
initialData={servizio}
|
||||
isLimited={!isAdmin}
|
||||
onSubmit={onSubmit}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
import { TRPCError } from "@trpc/server";
|
||||
import { db } from "../db";
|
||||
import type { NewServizio, ServizioServizioId, ServizioUpdate } from "~/schemas/public/Servizio";
|
||||
import OrderTypeEnum from "~/schemas/public/OrderTypeEnum";
|
||||
import { ACCONTO_STABILE, ACCONTO_TRANSITORIO } from "../controllers/pagamenti.controller";
|
||||
import TipologiaPosizioneEnum from "~/schemas/public/TipologiaPosizioneEnum";
|
||||
import { getPrezziarioByIdHandler } from "./prezziario.service";
|
||||
import type { AnnunciId } from "~/schemas/public/Annunci";
|
||||
import OrderTypeEnum from "~/schemas/public/OrderTypeEnum";
|
||||
import type {
|
||||
NewServizio,
|
||||
ServizioServizioId,
|
||||
ServizioUpdate,
|
||||
} from "~/schemas/public/Servizio";
|
||||
import type { ServizioAnnunciUpdate } from "~/schemas/public/ServizioAnnunci";
|
||||
import { db } from "../db";
|
||||
|
||||
|
|
@ -110,9 +110,6 @@ export const deleteServizio = async (servizioId: ServizioServizioId) => {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
////// SERVIZIO ANNUNCI
|
||||
|
||||
export const getServizioAnnuncio = async ({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue