mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-17 18:35:19 +02:00
format: auto-fix via pnpm format:fix
This commit is contained in:
parent
a74aa4da4f
commit
0e49cc33f8
37 changed files with 128 additions and 175 deletions
|
|
@ -3,24 +3,19 @@ import { z } from "zod";
|
|||
import { zql } from "../schema/index";
|
||||
|
||||
export const messageQueries = {
|
||||
byThread: defineQuery(
|
||||
z.object({ threadId: z.number() }),
|
||||
({ args: { threadId } }) =>
|
||||
zql.new_chat_messages.where("threadId", threadId).orderBy("createdAt", "asc"),
|
||||
byThread: defineQuery(z.object({ threadId: z.number() }), ({ args: { threadId } }) =>
|
||||
zql.new_chat_messages.where("threadId", threadId).orderBy("createdAt", "asc")
|
||||
),
|
||||
};
|
||||
|
||||
export const commentQueries = {
|
||||
byThread: defineQuery(
|
||||
z.object({ threadId: z.number() }),
|
||||
({ args: { threadId } }) =>
|
||||
zql.chat_comments.where("threadId", threadId).orderBy("createdAt", "asc"),
|
||||
byThread: defineQuery(z.object({ threadId: z.number() }), ({ args: { threadId } }) =>
|
||||
zql.chat_comments.where("threadId", threadId).orderBy("createdAt", "asc")
|
||||
),
|
||||
};
|
||||
|
||||
export const chatSessionQueries = {
|
||||
byThread: defineQuery(
|
||||
z.object({ threadId: z.number() }),
|
||||
({ args: { threadId } }) => zql.chat_session_state.where("threadId", threadId).one(),
|
||||
byThread: defineQuery(z.object({ threadId: z.number() }), ({ args: { threadId } }) =>
|
||||
zql.chat_session_state.where("threadId", threadId).one()
|
||||
),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue