Open anm8tr opened 6 years ago
@anm8tr Thanks for pointing that out. The original foodtracker backend didn't remove the mealstore but this was changed with the ORM. This means "Deleting Meals from the Meal Server" needs to be updated and we will look at that now.
@anm8tr A pull request fixing this issue and the rest of the next steps has been created.
On Section #1, Deleting Meals from the Meal Server, it instructs you to add the following code:
func deleteHandler(id: String, completion: (RequestError?) -> Void ) { print("Deleting (id) from mealStore") mealStore[id] = nil completion(nil) }
In the documentation for creating the Food Server backend it states to delete all references to "mealStore" when adding the postgresql database. So there is an obvious error when trying to run this script following that tutorial. The whole idea was to get the server to store and delete entries from the database. I have yet to get that part to work properly despite many repeat attempts, assuming I might have missed something somewhere.
Thx for any feedback.