Fix postgres on _get_profile_updates_for_user_and_fields_txn when empty fields

This commit is contained in:
Jason Robinson
2026-07-23 12:05:57 +03:00
parent 8eb7bb536d
commit 0d6448947d
+1 -1
View File
@@ -490,7 +490,7 @@ class ProfileWorkerStore(SQLBaseStore):
txn: LoggingTransaction,
) -> list[ProfileUpdate]:
if field_names_empty_means_all_fields:
field_clause = "pu.field_name NOT NULL"
field_clause = "pu.field_name IS NOT NULL"
field_args: list[str] = []
else:
field_clause, field_args = make_in_list_sql_clause(