store also the user_id when adding to favorite

This commit is contained in:
Pfingstfrosch 2020-05-16 12:22:09 +02:00
parent 8ca0f74276
commit 72be2d07f3

View File

@ -28,6 +28,8 @@ class Crawlers::PeopleCrawlerController < Crawlers::TissCrawlerController
# create stores the object to the db after creation # create stores the object to the db after creation
favorite_hash = { tiss_id: @person['tiss_id'], favorite_hash = { tiss_id: @person['tiss_id'],
# the user who is currently active
user_id: current_user.id,
first_name: @person['first_name'], first_name: @person['first_name'],
last_name: @person['last_name'], last_name: @person['last_name'],
picture_uri: @person['picture_uri'] } picture_uri: @person['picture_uri'] }