Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(chunk): update timestamp function in UpdateChunks method to use NOW() for consistency

wizardchen8db4b6cdea36
diff --git a/internal/application/repository/chunk.go b/internal/application/repository/chunk.go
index 7e2a9b512..b2f3eb6a3 100644
--- a/internal/application/repository/chunk.go
+++ b/internal/application/repository/chunk.go
@@ -378,7 +378,7 @@ func (r *chunkRepository) UpdateChunks(ctx context.Context, chunks []*types.Chun
tag_id = CASE %s END,
flags = CASE %s END,
status = CASE %s END,
- updated_at = datetime('now')
+ updated_at = NOW()
WHERE id IN (%s)
`,
strings.Join(contentCases, " "),