add: updatedById
This commit is contained in:
@@ -68,6 +68,7 @@ class UserController {
|
||||
is_active,
|
||||
is_approve
|
||||
} = req.body;
|
||||
const updatedById = req.user?.user_id;
|
||||
|
||||
const result = await userService.updateUser({
|
||||
user_id: parseInt(id, 10),
|
||||
@@ -78,7 +79,8 @@ class UserController {
|
||||
role_id,
|
||||
is_sa,
|
||||
is_active,
|
||||
is_approve
|
||||
is_approve,
|
||||
updatedById
|
||||
});
|
||||
|
||||
console.log("PARAM ID:", req.params);
|
||||
|
||||
Reference in New Issue
Block a user