mirror of
https://github.com/langgenius/dify.git
synced 2026-09-08 11:04:27 +08:00
feat(knowledge-fs): add content handling for initial source preview and cleanup tasks
This commit is contained in:
parent
94a170b0de
commit
b7b8367234
@ -623,7 +623,11 @@ export function createDatabaseSourceProductWorkflowRepository(input: {
|
||||
const next = await writeFenced(database, tx, current, {
|
||||
...current,
|
||||
...(terminal && current.payload.stagedPages
|
||||
? { payload: Object.fromEntries(Object.entries(current.payload).filter(([key]) => key !== "stagedPages")) }
|
||||
? {
|
||||
payload: Object.fromEntries(
|
||||
Object.entries(current.payload).filter(([key]) => key !== "stagedPages"),
|
||||
),
|
||||
}
|
||||
: {}),
|
||||
activeSlot: terminal ? undefined : current.activeSlot,
|
||||
checkpoint:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user