add_post_meta Adds post meta but the value is blank

If you’re updating a value, you want to use update_post_meta. When you set $unique to true in add_post_meta, nothing will happen if the meta key already exists.