peteromallet / Advisable

3 stars 0 forks source link

NoMethodError: undefined method `company' for #<Specialist id: 5012, image: {"id"=>"attCvKLctMZBSynS6", "url"=>"... #1500

Closed sentry-io[bot] closed 3 years ago

sentry-io[bot] commented 3 years ago

Sentry Issue: API-FN

NoMethodError: undefined method `company' for #<Specialist id: 5012, image: {"id"=>"attCvKLctMZBSynS6", "url"=>"https://dl.airtable.com/.attachments/1ebec6ddfd48ebdadc19e519de5841d1/39949e3b/76638524_10101576056571924_411586900659273728_n.jpg", "size"=>123821, "type"=>"image/jpeg", "width"=>960, "height"=>957, "filename"=>"76638524_10101576056571924_411586900659273728_n.jpg", "thumbnails"=>{"full"=>{"url"=>"https://dl.airtable.com/.attachmentThumbnails/ee223af659c196cf800ee4e4bd51b9aa/a5cab48e", "width"=>3000, "height"=>3000}, "large"=>{"url"=>"https://dl.airtable.com/.attachmentThumbnails/bec3f54ff5dd16a7866dcf9b171b8bb7/7d5679f5", "width"=>514, "height"=>512}, "small"=>{"url"=>"https://dl.airtable.com/.attachmentThumbnails/cc26981a37f9415cf9ea4c289379e555/425ddfaf", "width"=>36, "height"=>36}}}, linkedin: "https://www.linkedin.com/in/ritikapuri/", travel_availability: nil, city: "Vancouver", country_id: 46, airtable_id: "recsHqGVBAWDJpJBp", created_at: "2019-10-03 03:43:02.824470000 +0000", updated_at: "2021-10-06 22:29:34.170500000 +0000", encrypted_phone_number: "Kx0x8iVs94JboU3xGHt8aVGgy0nznPC3uBI7hw==\n", encrypted_phone_number_iv: "W2/lzHiE3sdLpaRF\n", ratings: {}, reviews_count: nil, bio: "My writing reaches audiences in complex industries...", uid: "spe_yXFx6fiQ2ngoNiC", remote: true, application_stage: "Accepted", bank_holder_name: "Storyhackers LLC", bank_holder_address: {"city"=>"San Francisco", "line1"=>"548 Market St #79631", "line2"=>nil, "state"=>"California [CA]", "country"=>"US", "postcode"=>"94104-5401"}, bank_currency: "USD", primarily_freelance: true, number_of_projects: "20+", hourly_rate: 12500, website: "http://www.ritikamonster.com", public_use: true, pid: nil, campaign_name: nil, campaign_source: nil, average_score: 0.930909090909090909e2, project_count: 16, phone: "+14157202867", guild: true, community_status: "Accepted", community_applied_at: "2020-12-02 01:30:17.000000000 +0000", community_accepted_at: "2020-10-12 17:41:23.000000000 +0000", community_invited_to_call_at: "2020-09-30 15:09:49.000000000 +0000", community_score: 9, account_id: 25223, member_of_week_email: nil, unavailable_until: nil, vat_number: nil, previous_work_description: nil, previous_work_results: nil, ideal_project: nil, application_interview_calendly_id: "AKEHCKOD2VJKHB35", application_interview_starts_at: "2021-08-25 22:00:00.000000000 +0000", guild_joined_date: "2020-12-09 19:42:56.055000000 +0000", guild_featured_member_at: nil, guild_calendly_link: nil, referrer_id: nil, interviewer_id: 83, case_study_status: "Interview Scheduled", trustpilot_review_status: nil, campaign_medium: nil, application_status: "Completed", iban: nil, sourcing_fee: nil, twitter: nil, instagram: nil, medium: nil, log_data: nil, phone_number: nil>
  app/graphql/types/query_type.rb:50:in `current_company'
    current_user&.company
...
(28 additional frame(s) were not displayed)
miharekar commented 3 years ago

Only happens when logged in as another person, and even in that case it's handled.