返回提交历史
Modified
src/controllers/api/logoutController.ts
+2
-1
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
代码差异
1 个文件
+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) {