feat: track RoomChanges in clan log #1174

Merged
Sainan merged 2 commits from room-log into main 2025-03-14 02:07:09 -07:00
Showing only changes of commit 90a541f7c4 - Show all commits

View File

@ -35,6 +35,11 @@ export const dojoComponentRushController: RequestHandler = async (req, res) => {
} 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));
if (entry) {
entry.dateTime = component.CompletionTime!;
}
}
await guild.save();