Skip to content

Commit

Permalink
fix: 🐛 changed cf datatype check condition (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar-s authored Jul 23, 2024
1 parent 6b2109a commit a8e85b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public List<ObservationESDocument> getESDocumentStub(String observationId) {
+ " o_value_date, o_value_numeric, o_value_string, cv_author_id, cv_icon_url, cv_notes, cv_value, "
+ " CASE " + " WHEN cf_field_type = 'FIELD TEXT' THEN " + " CASE "
+ " WHEN cf_data_type = 'STRING' THEN o_value_string "
+ " WHEN cf_data_type = 'NUMERIC' THEN o_value_numeric\\:\\:text "
+ " WHEN cf_data_type = 'INTEGER' THEN o_value_numeric\\:\\:text "
+ " WHEN cf_data_type = 'DATE' THEN o_value_date\\:\\:text " + " END "
+ " END AS field_text_data, " + " " + " CASE "
+ " WHEN cf_field_type = 'SINGLE CATEGORICAL' THEN cv_value " + " ELSE NULL "
Expand Down

0 comments on commit a8e85b0

Please sign in to comment.