Open diegoevangelisti opened 5 months ago
Minor fix for Running activity type since it was defined as street_running but it needs to be running instead.
Running
street_running
running
BEFORE
Request
app.get("/activities", async (_, res: Response) => { try { const activities = await GCClient.getActivities( 0, 10, ActivityType.Running // "running_outdoor" ); res.status(200).send(JSON.stringify(activities)); } catch (e) { res.status(400).send(e); } });
Response:
ERROR: (400), Bad Request, {"message":"Activity type cannot be an activity sub type","error":"BadRequestException"}
AFTER
app.get("/activities", async (_, res: Response) => { try { const activities = await GCClient.getActivities( 0, 10, "running" ); res.status(200).send(JSON.stringify(activities)); } catch (e) { res.status(400).send(e); } });
Minor fix for
Running
activity type since it was defined asstreet_running
but it needs to berunning
instead.BEFORE
Request
Response:
AFTER
Request
Response: