Fixed trpc type isses

This commit is contained in:
Umar Adilov 2026-02-13 17:45:30 +05:00
parent 73a4cf2ca0
commit 90fc22e55c
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ export const postsRouter = router({
})
.optional(),
)
.query(({ input, ctx }) => {
.query(({ input }) => {
let result = posts;
if (input?.published !== undefined) {

View File

@ -1,7 +1,7 @@
import { createQueryBuilder } from "@taylordb/query-builder";
import { initTRPC } from "@trpc/server";
import type { CreateExpressContextOptions } from "@trpc/server/adapters/express";
import { TaylorDatabase } from "./taylordb/types";
import type { TaylorDatabase } from "./taylordb/types";
/**
* Create context for each tRPC request