(req, res)
| 99 | }; |
| 100 | |
| 101 | const getAdvancedBoxScore = async (req, res) => { |
| 102 | try { |
| 103 | if (!req.query.gameId) { |
| 104 | res.status(400).send({ |
| 105 | error: 'gameId must be specified' |
| 106 | }); |
| 107 | } else if (!parseInt(req.query.gameId)) { |
| 108 | res.status(400).send({ |
| 109 | error: 'gameId must be numeric' |
| 110 | }); |
| 111 | } else { |
| 112 | const result = await service.getAdvancedBoxScore(req.query.gameId); |
| 113 | res.send(result); |
| 114 | } |
| 115 | } catch (err) { |
| 116 | Sentry.captureException(err); |
| 117 | res.status(500).send({ |
| 118 | error: 'something went wrong' |
| 119 | }); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | return { |
| 124 | getTeamStats, |
nothing calls this directly
no outgoing calls
no test coverage detected