chore: Add additional missing events (#1639)
* chore: Add additional missing events signed in profile updated team setting updated * Minor refactor to DRY existing code * Add events * lint * flow: Add missing ip to event types
This commit is contained in:
@@ -69,6 +69,14 @@ router.post("users.update", auth(), async (ctx) => {
|
||||
|
||||
await user.save();
|
||||
|
||||
await Event.create({
|
||||
name: "users.update",
|
||||
actorId: user.id,
|
||||
userId: user.id,
|
||||
teamId: user.teamId,
|
||||
ip: ctx.request.ip,
|
||||
});
|
||||
|
||||
ctx.body = {
|
||||
data: presentUser(user, { includeDetails: true }),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user