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: invalid format in inventory response for UpgradesExpiry (#1473)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1473 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

2bdb7229
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -0
Modified src/models/inventoryModels/inventoryModel.ts +3 -0
@@ -899,6 +899,9 @@ EquipmentSchema.set("toJSON", {
899 899 if (db.InfestationDate) {
900 900 client.InfestationDate = toMongoDate(db.InfestationDate);
901 901 }
902 if (db.UpgradesExpiry) {
903 client.UpgradesExpiry = toMongoDate(db.UpgradesExpiry);
904 }
902 905 }
903 906 });
904 907