fix: syndicate mission oids being longer than 24 chars
This commit is contained in:
parent
0be54dd7ce
commit
6f3f1fe5b9
@ -53,7 +53,7 @@ export const worldStateController: RequestHandler = (req, res) => {
|
|||||||
const bountyCycleStart = bountyCycle * 9000000;
|
const bountyCycleStart = bountyCycle * 9000000;
|
||||||
const bountyCycleEnd = bountyCycleStart + 9000000;
|
const bountyCycleEnd = bountyCycleStart + 9000000;
|
||||||
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "ZarimanSyndicate")] = {
|
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "ZarimanSyndicate")] = {
|
||||||
_id: { $oid: bountyCycleStart.toString(16) + "0000000000000029" },
|
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000029" },
|
||||||
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
||||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
||||||
Tag: "ZarimanSyndicate",
|
Tag: "ZarimanSyndicate",
|
||||||
@ -61,7 +61,7 @@ export const worldStateController: RequestHandler = (req, res) => {
|
|||||||
Nodes: []
|
Nodes: []
|
||||||
};
|
};
|
||||||
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "EntratiLabSyndicate")] = {
|
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "EntratiLabSyndicate")] = {
|
||||||
_id: { $oid: bountyCycleStart.toString(16) + "0000000000000004" },
|
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000004" },
|
||||||
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
Activation: { $date: { $numberLong: bountyCycleStart.toString() } },
|
||||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
Expiry: { $date: { $numberLong: bountyCycleEnd.toString() } },
|
||||||
Tag: "EntratiLabSyndicate",
|
Tag: "EntratiLabSyndicate",
|
||||||
@ -69,7 +69,7 @@ export const worldStateController: RequestHandler = (req, res) => {
|
|||||||
Nodes: []
|
Nodes: []
|
||||||
};
|
};
|
||||||
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "HexSyndicate")] = {
|
worldState.SyndicateMissions[worldState.SyndicateMissions.findIndex(x => x.Tag == "HexSyndicate")] = {
|
||||||
_id: { $oid: bountyCycleStart.toString(16) + "0000000000000006" },
|
_id: { $oid: Math.trunc(bountyCycleStart / 1000).toString(16) + "0000000000000006" },
|
||||||
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
Activation: { $date: { $numberLong: bountyCycleStart.toString(10) } },
|
||||||
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
Expiry: { $date: { $numberLong: bountyCycleEnd.toString(10) } },
|
||||||
Tag: "HexSyndicate",
|
Tag: "HexSyndicate",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user