Compare commits
1 Commits
50c0a45c6d
...
90a541f7c4
Author | SHA1 | Date | |
---|---|---|---|
90a541f7c4 |
@ -32,14 +32,14 @@ export const dojoComponentRushController: RequestHandler = async (req, res) => {
|
|||||||
const deco = component.Decos!.find(x => x._id.equals(request.DecoId))!;
|
const deco = component.Decos!.find(x => x._id.equals(request.DecoId))!;
|
||||||
const meta = Object.values(ExportDojoRecipes.decos).find(x => x.resultType == deco.Type)!;
|
const meta = Object.values(ExportDojoRecipes.decos).find(x => x.resultType == deco.Type)!;
|
||||||
processContribution(deco, meta, platinumDonated);
|
processContribution(deco, meta, platinumDonated);
|
||||||
|
} else {
|
||||||
|
const meta = Object.values(ExportDojoRecipes.rooms).find(x => x.resultType == component.pf)!;
|
||||||
|
processContribution(component, meta, platinumDonated);
|
||||||
|
|
||||||
const entry = guild.RoomChanges?.find(x => x.componentId.equals(component._id));
|
const entry = guild.RoomChanges?.find(x => x.componentId.equals(component._id));
|
||||||
if (entry) {
|
if (entry) {
|
||||||
entry.dateTime = component.CompletionTime!;
|
entry.dateTime = component.CompletionTime!;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
const meta = Object.values(ExportDojoRecipes.rooms).find(x => x.resultType == component.pf)!;
|
|
||||||
processContribution(component, meta, platinumDonated);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await guild.save();
|
await guild.save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user