mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: oplog: fix uid collection
This commit is contained in:
1 parent
53e1894527
commit
8d5ec0ab03
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.3.16",
|
||||
"version": "3.3.17",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -27,7 +27,7 @@ export async function log<T extends Handler>(handler: T, type: string, data: any
|
||||
ua: handler.request.headers?.['user-agent'],
|
||||
referer: handler.request.headers?.referer,
|
||||
args,
|
||||
operator: handler.user?.id,
|
||||
operator: handler.user?._id,
|
||||
operateIp: handler.request.ip,
|
||||
});
|
||||
return res.insertedId;
|
||||
|
||||
Reference in new issue
Block a user