Added seller to order and cleaned up to make it more visible who is seller and who is buyer.
and verifying that seller is existing in database by getting it from gameAds not manually passing it as a parameter.
Also made sure that when an order is created the gameAds present gets isAvailable set to false.
Before merging:
checkout this branch: 79-add-seller-to-order
and test ALL endpoints not just create a order
syntax for order is:
Added seller to order and cleaned up to make it more visible who is seller and who is buyer. and verifying that seller is existing in database by getting it from gameAds not manually passing it as a parameter. Also made sure that when an order is created the gameAds present gets isAvailable set to false.
Before merging:
checkout this branch: 79-add-seller-to-order and test ALL endpoints not just create a order syntax for order is:
http://localhost:8080/api/orders body - { "buyerId": "", "gameAdIds": [
}