fix(memory): initialize candidate schema on admin bootstrap
memind_adm CI / Test, build, and release script checks (push) Successful in 24s
memind_adm CI / Test, build, and release script checks (push) Successful in 24s
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { importMemind } from './lib-path.mjs';
|
||||
|
||||
export async function initializePersonalMemoryCandidateStore(
|
||||
pool,
|
||||
{ importMemindModule = importMemind } = {},
|
||||
) {
|
||||
const {
|
||||
createPersonalMemoryCandidateStore,
|
||||
ensurePersonalMemoryCandidateSchema,
|
||||
} = await importMemindModule('memory-v2-personal-store.mjs');
|
||||
|
||||
await ensurePersonalMemoryCandidateSchema(pool);
|
||||
return createPersonalMemoryCandidateStore(pool);
|
||||
}
|
||||
Reference in New Issue
Block a user