fix: set activation & expiry for eidolon/venus/deimos bounties
All checks were successful
Build / build (pull_request) Successful in 43s
Build / build (push) Successful in 1m20s

This commit is contained in:
Sainan 2025-04-11 19:34:39 +02:00
parent 61e168e444
commit 30786e7a3a

View File

@ -321,6 +321,8 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
}; };
for (const syndicateInfo of worldState.SyndicateMissions) { for (const syndicateInfo of worldState.SyndicateMissions) {
if (syndicateInfo.Jobs && syndicateInfo.Seed != bountyCycle) { if (syndicateInfo.Jobs && syndicateInfo.Seed != bountyCycle) {
syndicateInfo.Activation.$date.$numberLong = bountyCycleStart.toString(10);
syndicateInfo.Expiry.$date.$numberLong = bountyCycleEnd.toString(10);
syndicateInfo.Seed = bountyCycle; syndicateInfo.Seed = bountyCycle;
logger.debug(`refreshing jobs for ${syndicateInfo.Tag}`); logger.debug(`refreshing jobs for ${syndicateInfo.Tag}`);
const rng = new CRng(bountyCycle); const rng = new CRng(bountyCycle);