fixed docker
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user