kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
c171ee61cf
commit
2e84664367
|
@ -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']
|
||||
>
|
||||
|
|
|
@ -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({
|
||||
|
|
Ładowanie…
Reference in New Issue