返回提交历史
Modified
src/controllers/api/getGuildController.ts
+1
-1
Modified
src/controllers/api/getGuildLogController.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
chore: use inventory projection for getGuild requests (#1212)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1212
1d23f273
代码差异
2 个文件
+2
-2
@@ -7,7 +7,7 @@ import { createUniqueClanName, getGuildClient } from "@/src/services/guildServic
7
7
8
8
const getGuildController: RequestHandler = async (req, res) => {
9
9
const accountId = await getAccountIdForRequest(req);
10
const inventory = await getInventory(accountId);
10
const inventory = await getInventory(accountId, "GuildId");
11
11
if (inventory.GuildId) {
12
12
const guild = await Guild.findOne({ _id: inventory.GuildId });
13
13
if (guild) {
@@ -7,7 +7,7 @@ import { RequestHandler } from "express";
7
7
8
8
export const getGuildLogController: RequestHandler = async (req, res) => {
9
9
const accountId = await getAccountIdForRequest(req);
10
const inventory = await getInventory(accountId);
10
const inventory = await getInventory(accountId, "GuildId");
11
11
if (inventory.GuildId) {
12
12
const guild = await Guild.findOne({ _id: inventory.GuildId });
13
13
if (guild) {