From 77f30a57e80d1b1c2be668ed4e5948e27ef6a325 Mon Sep 17 00:00:00 2001 From: bludnic Date: Thu, 25 Jul 2024 10:16:45 +0100 Subject: [PATCH] fix(prisma, build): generic type changed after upgrade --- packages/db/src/extension/models/custom-bot.model.ts | 2 +- packages/db/src/extension/models/grid-bot.model.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/db/src/extension/models/custom-bot.model.ts b/packages/db/src/extension/models/custom-bot.model.ts index 0feccd34..fbd081e6 100644 --- a/packages/db/src/extension/models/custom-bot.model.ts +++ b/packages/db/src/extension/models/custom-bot.model.ts @@ -8,7 +8,7 @@ import type { TBotSettings, TBotState } from "../../types/index.js"; import { ZBotSettings } from "../../types/index.js"; type NarrowBotType = Omit< - Awaited, T>>, + Awaited, T, {}>>, "settings" | "state" > & { settings: TBotSettings; diff --git a/packages/db/src/extension/models/grid-bot.model.ts b/packages/db/src/extension/models/grid-bot.model.ts index f250f611..cff92634 100644 --- a/packages/db/src/extension/models/grid-bot.model.ts +++ b/packages/db/src/extension/models/grid-bot.model.ts @@ -8,7 +8,7 @@ import type { TBotState, TGridBotSettings } from "../../types/index.js"; import { ZGridBotSettings } from "../../types/grid-bot/index.js"; type NarrowBotType = Omit< - Awaited, T>>, + Awaited, T, {}>>, "settings" | "state" > & { settings: TGridBotSettings;