From a4f0bc717a3f7e70f2b8edc6ec03d543d99e5f4e Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 28 Mar 2023 15:29:22 +0300 Subject: [PATCH] fix pass right user to create-kp --- apps/web/server/routers/quote/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/server/routers/quote/index.ts b/apps/web/server/routers/quote/index.ts index 4f8b854..3f29522 100644 --- a/apps/web/server/routers/quote/index.ts +++ b/apps/web/server/routers/quote/index.ts @@ -132,7 +132,7 @@ export const quoteRouter = router({ } const createKPResult = await createKP({ - domainName: ctx.user.domainName, + domainName: user.domainName, finGAP: input.fingap, insurance: Object.values(input.insurance.values), calculation: {