Resolves some misalignment issues with the new API:
create originally returned id as an object id:{value: string}, updated to create id:string
undefined was originally converted to string and inserted into localstorage. This would later cause an error on scanning since deviceID would be "undefined". This PR first checks if deviceID is currently ==="undefined" if so, assigns a new valid deviceID
creating new user and new checkin had null values which conflicts with gremlin setup, we resolve this by passing an empty string as part of the complete object. Subsequent work would include gremlin defining which fields are optional or not and better error responses.
Resolves some misalignment issues with the new API:
create originally returned id as an object id:{value: string}, updated to create id:string
undefined was originally converted to string and inserted into localstorage. This would later cause an error on scanning since deviceID would be "undefined". This PR first checks if deviceID is currently ==="undefined" if so, assigns a new valid deviceID
creating new user and new checkin had null values which conflicts with gremlin setup, we resolve this by passing an empty string as part of the complete object. Subsequent work would include gremlin defining which fields are optional or not and better error responses.