tsg-iitkgp / tsg

GNU General Public License v2.0
2 stars 5 forks source link

Update Backend As Well As Frontend TO Have Proper Empty Response #20

Closed thealphadollar closed 4 years ago

thealphadollar commented 5 years ago

Currently how the backend returns emptiness causes issues and thus we have to resort to a temp solution and we display errors also as "To Be Updated"

This needs to be changed on the backend as well where we would return {"error": "no data"} and we would look for error key in the response for emptiness.

https://github.com/tsg-iitkgp/tsg/commit/a82817ee3b9199ff069b2c8553530bbbc0c7df51#r35659506

thealphadollar commented 5 years ago

Concerned backend issue: https://github.com/tsg-iitkgp/Gymkhana-BackServer/issues/5

thealphadollar commented 5 years ago

@mukul-mehta Please work on this.