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

fix: syndicate sacrifice doesn't persist new title (#787)

6ee28e58
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +2 -1
Modified src/controllers/api/syndicateSacrificeController.ts +2 -1
@@ -47,7 +47,8 @@ export const syndicateSacrificeController: RequestHandler = async (request, resp
47 47 res.InventoryChanges.MiscItems = miscItemChanges;
48 48 }
49 49
50 if (syndicate?.Title !== undefined) syndicate.Title += 1;
50 syndicate.Title ??= 0;
51 syndicate.Title += 1;
51 52
52 53 await inventory.save();
53 54