cardinalhorizon / VAOS

Virtual Aviation Operations System
http://www.fsvaos.net
GNU General Public License v3.0
48 stars 19 forks source link

Fixing positionreport (not tested in SmartCARS yet) #66

Closed mario-fehr closed 7 years ago

mario-fehr commented 7 years ago

The Api has always created a row instead of updating the existing one. The reason for this behavior was that in the firstOrNew function always the complete bid object was given instead of just the ID. Which led to the fact that the existing row was not found. I've also changed that only the user_id is stored in the $report array instead of the whole object. FirstOrNew now checks next to the bid_user also the user_id (will probably be changed again)

mario-fehr commented 7 years ago

@FSVAOS/devteam will merge when the smartcars test is positiv.