goodybag / cater-api-server

hacking this together as fast as possible but with an eye for re-organization
1 stars 0 forks source link

Use calculated order total in command center #2382

Closed L8D closed 8 years ago

jrf0110 commented 8 years ago

Looking at routes/admin/index.js line 823, we see that the .getOrder middleware is being told to applyPriceHike. I seem to recall Om saying something about the amenities not being included in the total. And indeed, the amenities aren't being pulled in from the order middleware. I think you could just say amenities: true and fix it. Or you could replace all of the unnecessary flags with useLatestRevision: true