fix: set activation & expiry for eidolon/venus/deimos bounties (#1581)

Reviewed-on: OpenWF/SpaceNinjaServer#1581
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-12 06:15:14 -07:00 committed by Sainan
parent 9b330ffd3e
commit 5c6b4b5779

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);