mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
fix: documents.add_user event
This commit is contained in:
1 parent
ffd256cd90
commit
f490f65330
1 file changed
+17
@@ -1501,6 +1501,23 @@ router.post(
|
||||
await membership.save({ transaction });
|
||||
}
|
||||
|
||||
await Event.create(
|
||||
{
|
||||
name: "documents.add_user",
|
||||
userId,
|
||||
documentId: document.id,
|
||||
teamId: document.teamId,
|
||||
actorId: actor.id,
|
||||
data: {
|
||||
name: user.name,
|
||||
},
|
||||
ip: ctx.request.ip,
|
||||
},
|
||||
{
|
||||
transaction,
|
||||
}
|
||||
);
|
||||
|
||||
ctx.body = {
|
||||
data: {
|
||||
users: [presentUser(user)],
|
||||
|
||||
Reference in new issue
Block a user