Skip to content

Commit

Permalink
Fixed db error
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoni7 committed Sep 4, 2024
1 parent 1dfb0f5 commit b04fad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/features/armor-optimization/StatsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ const StatsTable: React.FC<StatsTableProps> = ({ permutations, onPermutationClic

for (const [stat, costs] of Object.entries(perm.modsArray)) {
for (const cost of costs) {
console.log(cost);
const mod = await db.manifestArmorStatModDef
.where(stat + 'Mod')
.equals(cost)
Expand Down
6 changes: 3 additions & 3 deletions src/store/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const db = new Dexie('manifestDb') as Dexie & {
manifestSubclass: EntityTable<ManifestSubclass, 'itemHash'>;
};

db.version(2).stores({
db.version(1).stores({
manifestSandboxPerkDef: 'itemHash, name, icon, description',
manifestArmorDef: 'itemHash, name, icon, isExotic, class, slot',
manifestExoticArmorCollection: 'itemHash, name, icon, class, slot, isOwned, collectibleHash',
Expand All @@ -37,13 +37,13 @@ db.version(2).stores({
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned, unique, collectibleHash',
manifestIntrinsicModDef: 'itemHash, name, icon, perks',
manifestArmorStatModDef:
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned, collectibleHash, mobilityMod, resilienceMod, recoveryMod, discipline, intellect, strength',
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned, collectibleHash, mobilityMod, resilienceMod, recoveryMod, disciplineMod, intellectMod, strengthMod',
manifestSubclassModDef:
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned',
manifestSubclassAspectsDef:
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned, energyCapacity',
manifestSubclassFragmentsDef:
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned, mobilityMod, resilienceMod, recoveryMod, discipline, intellect, strength',
'itemHash, name, icon, category, perkName, perkDescription, perkIcon, isOwned, mobilityMod, resilienceMod, recoveryMod, disciplineMod, intellectMod, strengthMod',
manifestSubclass: 'itemHash, name, icon, highResIcon, screenshot, damageType, class, isOwned',
});

Expand Down

0 comments on commit b04fad1

Please sign in to comment.