Fixed trpc type isses
This commit is contained in:
parent
73a4cf2ca0
commit
90fc22e55c
|
|
@ -71,7 +71,7 @@ export const postsRouter = router({
|
|||
})
|
||||
.optional(),
|
||||
)
|
||||
.query(({ input, ctx }) => {
|
||||
.query(({ input }) => {
|
||||
let result = posts;
|
||||
|
||||
if (input?.published !== undefined) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user