Skip to content

Commit

Permalink
fix(prisma, build): generic type changed after upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Jul 25, 2024
1 parent 0a66c75 commit 77f30a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/db/src/extension/models/custom-bot.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { TBotSettings, TBotState } from "../../types/index.js";
import { ZBotSettings } from "../../types/index.js";

type NarrowBotType<ExtArgs extends InternalArgs, T> = Omit<
Awaited<GetFindResult<Prisma.$BotPayload<ExtArgs>, T>>,
Awaited<GetFindResult<Prisma.$BotPayload<ExtArgs>, T, {}>>,
"settings" | "state"
> & {
settings: TBotSettings;
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/extension/models/grid-bot.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { TBotState, TGridBotSettings } from "../../types/index.js";
import { ZGridBotSettings } from "../../types/grid-bot/index.js";

type NarrowBotType<ExtArgs extends InternalArgs, T> = Omit<
Awaited<GetFindResult<Prisma.$BotPayload<ExtArgs>, T>>,
Awaited<GetFindResult<Prisma.$BotPayload<ExtArgs>, T, {}>>,
"settings" | "state"
> & {
settings: TGridBotSettings;
Expand Down

0 comments on commit 77f30a5

Please sign in to comment.