Skip to content

Commit

Permalink
fix(#144): null condition for person
Browse files Browse the repository at this point in the history
  • Loading branch information
witash committed Sep 6, 2024
1 parent d57469e commit 658fda6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/contacts/person.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
SELECT
contact.uuid,
contact.saved_timestamp,
(couchdb.doc->>'date_of_birth')::date as date_of_birth,
NULLIF(couchdb.doc->>'date_of_birth', '')::date as date_of_birth,
couchdb.doc->>'sex' as sex,
couchdb.doc->>'phone' AS phone,
couchdb.doc->>'alternative_phone' AS phone2,
Expand Down

0 comments on commit 658fda6

Please sign in to comment.