pull/715/head
Travis Fischer 2025-06-17 07:45:00 +07:00
rodzic c171ee61cf
commit 2e84664367
2 zmienionych plików z 1 dodań i 17 usunięć

Wyświetl plik

@ -105,22 +105,6 @@ export const paginationSchema = z.object({
sortBy: z.enum(['createdAt', 'updatedAt']).default('createdAt').optional()
})
// import type { PgTable, TableConfig } from '@fisch0920/drizzle-orm/pg-core'
// import type { AnyZodObject } from 'zod'
//
// export function createWhereFilterSchema<
// TTableConfig extends TableConfig,
// TTable extends PgTable<TTableConfig>,
// T extends AnyZodObject
// >(table: TTable, schema: T) {
// return z.object({
// where: z.record(
// z.enum(Object.keys(table._.columns) as [string, ...string[]]),
// z.string()
// )
// })
// }
export type ProjectRelationFields = keyof ReturnType<
(typeof projectsRelations)['config']
>

Wyświetl plik

@ -19,7 +19,7 @@ export function AppIndex() {
fetchNextPage,
isFetchingNextPage
} = useInfiniteQuery({
queryKey: ['projects'],
queryKey: ['projects', ctx?.api.authSession?.user?.id],
queryFn: ({ pageParam = 0 }) =>
ctx!.api
.listProjects({