mirror of
https://github.com/langgenius/dify.git
synced 2026-07-30 08:49:31 +08:00
9 lines
355 B
TypeScript
9 lines
355 B
TypeScript
import type { YamlStore } from './store'
|
|
import type { ConfigFile } from '@/config/schema'
|
|
import { CURRENT_SCHEMA_VERSION } from '@/config/schema'
|
|
|
|
export async function saveConfig(store: YamlStore, config: ConfigFile): Promise<void> {
|
|
const stamped: ConfigFile = { ...config, schema_version: CURRENT_SCHEMA_VERSION }
|
|
await store.setTyped(stamped)
|
|
}
|