Skip to content

Commit

Permalink
Fix:SQL] Ensure proper handling of user preferred given name in auto …
Browse files Browse the repository at this point in the history
…feed
  • Loading branch information
lavalleeale committed Jan 23, 2025
1 parent e4ebc27 commit dadedcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions student_auto_feed/ssaf_sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class sql {
user_numeric_id,
user_givenname,
user_familyname,
NULLIF(user_preferred_givenname, ''),
user_preferred_givenname,
user_email
) VALUES ($1, $2, $3, $4, $5, $6)
) VALUES ($1, $2, $3, $4, NULLIF($5,''), $6)
ON CONFLICT (user_id) DO UPDATE
SET user_numeric_id=EXCLUDED.user_numeric_id,
user_givenname=EXCLUDED.user_givenname,
Expand Down

0 comments on commit dadedcb

Please sign in to comment.