diff --git a/src/actions/backfill-gloss-entries.ts b/src/actions/backfill-gloss-entries.ts index 1356071..4b12ad8 100644 --- a/src/actions/backfill-gloss-entries.ts +++ b/src/actions/backfill-gloss-entries.ts @@ -24,7 +24,9 @@ export async function backfillGlossEntries( owner_id: string, // 必經:存量 entity record 本身 owner=None,owner 由 caller 明確指定(配合 owner-mandatory D28) ): Promise { await ensurePluginTemplates(client); - const records = await client.listRecordsByTemplate(TPL_ENTITY, owner_id); + // 讀「全部」存量 entity record(不帶 owner 過濾)——存量 entity 本身 owner=None,拿 owner 去濾來源會讀到 0。 + // owner 只套在下面建立的 gloss entry(caller 明確指定),不套來源讀取。 + const records = await client.listRecordsByTemplate(TPL_ENTITY); const res: BackfillGlossResult = { scanned: records.length, created: 0, updated: 0, unchanged: 0, skipped: 0 }; for (const r of records) {