Make parsePatch method generic
Can we extract this into a general service method that takes original object and a schema, and returns the attributes that match the schema?
Originally posted by @pierreTklein in https://github.com/hackmcgill/hackerAPI/pull/277
Drop some roast :fire: if there's an issue! Sorry for the delay, been busy with work on boarding but more should roll out slowly :') :+1: If its all good, I'll start making use of the service to replace the manual parsePatch Functions across the middleware
Is there a PR for this?
No I wasnt sure if I should have created a PR since the method needs to be called across different services and I just started with the implementation of the method to see if it was alright before putting it across the api
*across different middleware
Maybe a draft PR is the best way? https://github.blog/2019-02-14-introducing-draft-pull-requests/
Yeah sure that's true!