mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-08 06:04:35 +08:00
Set invited_by field to invited users
This commit is contained in:
parent
c88f834ba9
commit
564274a588
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ module Users
|
||||||
initials: email.upcase[0..1],
|
initials: email.upcase[0..1],
|
||||||
skip_invitation: true
|
skip_invitation: true
|
||||||
)
|
)
|
||||||
|
user.update(invited_by: @user)
|
||||||
|
|
||||||
result[:status] = :user_created
|
result[:status] = :user_created
|
||||||
result[:user] = user
|
result[:user] = user
|
||||||
|
|
Loading…
Add table
Reference in a new issue