BeerPostQueryResult type now inferred from zod schema

This commit is contained in:
Aaron William Po
2023-02-20 14:26:58 -05:00
parent 4cd2ab476f
commit c818dc6525
16 changed files with 75 additions and 58 deletions

View File

@@ -1,5 +1,5 @@
import DBClient from '@/prisma/DBClient';
import BeerPostQueryResult from '../BeerPost/schema/BeerPostQueryResult';
import { BeerPostQueryResult } from '@/services/BeerPost/schema/BeerPostQueryResult';
import { BeerCommentQueryResultArrayT } from './schema/BeerCommentQueryResult';
const getAllBeerComments = async (