fixed docker

This commit is contained in:
2026-02-04 15:37:59 +00:00
parent 6d271ef65b
commit 025ce8f763
16 changed files with 135 additions and 93 deletions

View File

@@ -100,7 +100,12 @@ export const getById = query({
export const listByProject = query({
args: {
projectId: v.id("projects"),
status: v.optional(v.string()),
status: v.optional(v.union(
v.literal("pending"),
v.literal("running"),
v.literal("completed"),
v.literal("failed")
)),
},
handler: async (ctx, args) => {
const userId = await getAuthUserId(ctx);

View File

@@ -58,7 +58,7 @@ export const listByProject = query({
if (args.minScore !== undefined) {
queryBuilder = queryBuilder.filter((q) =>
q.gte(q.field("relevanceScore"), args.minScore)
q.gte(q.field("relevanceScore"), args.minScore as number)
);
}

View File

@@ -64,7 +64,12 @@ export const update = mutation({
export const listByProject = query({
args: {
projectId: v.id("projects"),
status: v.optional(v.string()),
status: v.optional(v.union(
v.literal("pending"),
v.literal("running"),
v.literal("completed"),
v.literal("failed")
)),
},
handler: async (ctx, args) => {
const userId = await getAuthUserId(ctx);