store also the user_id when adding to favorite
This commit is contained in:
parent
8ca0f74276
commit
72be2d07f3
@ -28,6 +28,8 @@ class Crawlers::PeopleCrawlerController < Crawlers::TissCrawlerController
|
||||
|
||||
# create stores the object to the db after creation
|
||||
favorite_hash = { tiss_id: @person['tiss_id'],
|
||||
# the user who is currently active
|
||||
user_id: current_user.id,
|
||||
first_name: @person['first_name'],
|
||||
last_name: @person['last_name'],
|
||||
picture_uri: @person['picture_uri'] }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user