返回提交历史
Modified
src/controllers/api/contributeToDojoComponentController.ts
+1
-0
XFEstudio/SpaceNinjaServer
note
2ec11073
代码差异
1 个文件
+1
-0
@@ -10,6 +10,7 @@ export const contributeToDojoComponentController: RequestHandler = async (req, r
10
10
const accountId = await getAccountIdForRequest(req);
11
11
const inventory = await getInventory(accountId);
12
12
const guild = await getGuildForRequestEx(req, inventory);
13
// Any clan member should have permission to contribute although notably permission is denied if they have not crafted the dojo key and were simply invited in.
13
14
const request = JSON.parse(String(req.body)) as IContributeToDojoComponentRequest;
14
15
const component = guild.DojoComponents.id(request.ComponentId)!;
15
16
const componentMeta = Object.values(ExportDojoRecipes.rooms).find(x => x.resultType == component.pf)!;