mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 03:07:47 +00:00
Update vessel_fn to handle empty vessel name from signalk in api.metadata
This commit is contained in:
@@ -96,7 +96,7 @@ AS $vessel$
|
||||
BEGIN
|
||||
SELECT
|
||||
jsonb_build_object(
|
||||
'name', m.name,
|
||||
'name', coalesce(m.name, null),
|
||||
'mmsi', coalesce(m.mmsi, null),
|
||||
'created_at', v.created_at::timestamp(0),
|
||||
'first_contact', coalesce(m.created_at::timestamp(0), null),
|
||||
|
Reference in New Issue
Block a user