You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2022. It is now read-only.
When doing a search from ember on the type column I'm getting the following exception.
App14766stdout: ProcessingbyApi::V1::EventsController#index as JSON
App 14766 stdout: Parameters: {"descending"=>"1", "detailed"=>"{\"type\":[\"\\\"bounced\\\"\"]}", "like"=>"true", "limit"=>"10", "offset"=>"0", "sortby"=>"timestamp"}
App14766stdout: PG::UndefinedColumn: ERROR: column"type"doesnotexistApp14766stdout: LINE1: SELECTCOUNT(*) FROM"events"WHERE ("type"LIKE'%"bounced...App 14766 stdout: ^App 14766 stdout: : SELECT COUNT(*) FROM "events" WHERE ("type" LIKE '%"bounced"%')App14766stdout: Completed500InternalServerErrorin2msApp14766stdout:
App14766stdout: ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR: column"type"doesnotexistApp14766stdout: LINE1: SELECTCOUNT(*) FROM"events"WHERE ("type"LIKE'%"bounced...App 14766 stdout: ^App 14766 stdout: : SELECT COUNT(*) FROM "events" WHERE ("type" LIKE '%"bounced"%')):App14766stdout: app/controllers/api/v1/events_controller.rb:61:in `index'
The request is searching on the type column rather than the type_id column.
I can see there is a conditions in the receiver for renaming this key when coming back from sendgrid. Looks like the events_controller can be safely corrected to accept type_id