From 72be2d07f3158ed0ba86529fbdf383db98fc0eba Mon Sep 17 00:00:00 2001 From: Pfingstfrosch Date: Sat, 16 May 2020 12:22:09 +0200 Subject: [PATCH] store also the user_id when adding to favorite --- app/controllers/crawlers/people_crawler_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/crawlers/people_crawler_controller.rb b/app/controllers/crawlers/people_crawler_controller.rb index 2b5be29..4117991 100644 --- a/app/controllers/crawlers/people_crawler_controller.rb +++ b/app/controllers/crawlers/people_crawler_controller.rb @@ -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'] }