feat: clan polychrome research #1177

Merged
Sainan merged 10 commits from clan-polychrome into main 2025-03-16 04:32:12 -07:00
Showing only changes of commit fecae991d3 - Show all commits

View File

@ -203,6 +203,10 @@ export const guildTechController: RequestHandler = async (req, res) => {
const project = guild.TechProjects!.find(x => x.ItemType == data.RecipeType)!;
project.State = 0;
guild.ActiveDojoColorResearch = data.RecipeType;
const entry = guild.TechChanges?.find(x => x.details == data.RecipeType);
if (entry) {
entry.dateTime = new Date();
}
await guild.save();
res.end();
} else {