Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/api/miningStore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe('backend Planet mining snapshots', () => {
currentBalanceMicros: '2000000',
effectiveMineralsPerDayMicros: '1000000',
ownedPlanetCount: 1,
upgradesEnabled: false,
upgradesEnabled: true,
});
expect(snapshot).not.toHaveProperty('earnedMicros');
expect(snapshot.planets[0]).toMatchObject({
Expand Down
3 changes: 1 addition & 2 deletions server/api/miningStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ export async function getBackendWalletMiningSnapshot(
ownedPlanetCount: snapshots.length,
currentBalanceMicros: currentBalanceMicros.toString(),
effectiveMineralsPerDayMicros: effectiveMineralsPerDayMicros.toString(),
// ponytail: expose upgrades only after the public route gains owner-bound authentication.
upgradesEnabled: false,
upgradesEnabled: options.mineralUpgradesEnabled === true,
planets: snapshots,
};
},
Expand Down
Loading