fix request log
This commit is contained in:
@@ -232,7 +232,7 @@ class UserController extends AbstractController
|
||||
]);
|
||||
|
||||
OperationLogService::log(
|
||||
user_id: OperationLogService::getCurrentUserId() ?? 0,
|
||||
user_id: OperationLogService::getCurrentUserId(),
|
||||
action: 'user.create',
|
||||
target_type: 'user',
|
||||
target_id: $user->id,
|
||||
@@ -442,7 +442,7 @@ class UserController extends AbstractController
|
||||
$user->refresh();
|
||||
|
||||
OperationLogService::log(
|
||||
user_id: OperationLogService::getCurrentUserId() ?? 0,
|
||||
user_id: OperationLogService::getCurrentUserId(),
|
||||
action: 'user.update',
|
||||
target_type: 'user',
|
||||
target_id: $user->id,
|
||||
@@ -531,7 +531,7 @@ class UserController extends AbstractController
|
||||
$user->refresh();
|
||||
|
||||
OperationLogService::log(
|
||||
user_id: OperationLogService::getCurrentUserId() ?? 0,
|
||||
user_id: OperationLogService::getCurrentUserId(),
|
||||
action: 'user.status_change',
|
||||
target_type: 'user',
|
||||
target_id: $user->id,
|
||||
|
||||
Reference in New Issue
Block a user