Update the getFriends prototype function to serve the relevant friends by the userId