diff --git a/lib/adamantium/jobs/archive_dead_bookmarks.rb b/lib/adamantium/jobs/archive_dead_bookmarks.rb index 4286e4d..0df4cde 100644 --- a/lib/adamantium/jobs/archive_dead_bookmarks.rb +++ b/lib/adamantium/jobs/archive_dead_bookmarks.rb @@ -12,7 +12,7 @@ module Adamantium bookmarks.each do |bookmark| code = HTTParty.get(bookmark.url, follow_redirects: false).code if code >= 400 - bookmark_repo.update(bookmark.id, params: {url: "https://web.archive.org/web/*/#{bookmark.url}"}) + bookmark_repo.update(id: bookmark.id, params: {url: "https://web.archive.org/web/*/#{bookmark.url}"}) end end end