Fix memory-service: remove manual id assignment for auto-increment PK
This commit is contained in:
@@ -33,7 +33,6 @@ async function test() {
|
||||
console.log('\n2. Testing correction storage...');
|
||||
try {
|
||||
const correction = await memory.storeCorrection({
|
||||
id: `correction_${Date.now()}`,
|
||||
pattern: '\\d+\\s*(%|percent)',
|
||||
severity: 'auto-correct',
|
||||
message: 'Quantitative claim requires evidence',
|
||||
@@ -61,7 +60,6 @@ async function test() {
|
||||
console.log('\n4. Testing preference storage...');
|
||||
try {
|
||||
const pref = await memory.storePreference({
|
||||
id: `pref_${Date.now()}`,
|
||||
category: 'communication',
|
||||
key: 'format',
|
||||
value: 'concise',
|
||||
@@ -87,7 +85,6 @@ async function test() {
|
||||
console.log('\n6. Testing validation logging...');
|
||||
try {
|
||||
await memory.logValidation({
|
||||
id: `run_${Date.now()}`,
|
||||
sessionId: 'test-session',
|
||||
inputLength: 100,
|
||||
outputLength: 200,
|
||||
|
||||
Reference in New Issue
Block a user