fix: load and persist legacy inheritance ranks

This commit is contained in:
2026-07-25 21:19:24 +00:00
parent 482beb055f
commit 6272ff9882
10 changed files with 95 additions and 39 deletions
@@ -213,7 +213,7 @@ integration('CreateManyNPC database persistence', () => {
const ranks = await db.rankData.findMany({ where: { generalId: createdGeneralId } });
// Legacy inserts 37 RankColumn rows. Core's canonical rank model
// additionally projects experience/dedication/dex, so it owns 41.
expect(ranks).toHaveLength(41);
expect(ranks).toHaveLength(44);
expect(ranks.every((rank) => rank.nationId === 0 && rank.value === 0)).toBe(true);
expect(
await db.logEntry.findMany({