XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: use inventory projection for getGuild requests (#1212)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1212

1d23f273
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +2 -2
Modified src/controllers/api/getGuildController.ts +1 -1
@@ -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) {
Modified src/controllers/api/getGuildLogController.ts +1 -1
@@ -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) {