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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

chore: remove dropped mark at logout (#3731)

It's possible that it might be set due to a race condition, so just to keep the DB a bit cleaner... Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3731 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

155a227e
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified src/controllers/api/logoutController.ts +2 -1
@@ -17,7 +17,8 @@ export const logoutController: RequestHandler = async (req, res) => {
17 17 Nonce: nonce
18 18 },
19 19 {
20 Nonce: 0
20 Nonce: 0,
21 $unset: { Dropped: 1 }
21 22 }
22 23 );
23 24 if (stat.modifiedCount) {