(req, res)
| 4 | const service = serviceConstructor(db); |
| 5 | |
| 6 | const getPlayTypes = async (req, res) => { |
| 7 | try { |
| 8 | let types = await service.getPlayTypes(); |
| 9 | res.send(types); |
| 10 | } catch (err) { |
| 11 | Sentry.captureException(err); |
| 12 | res.status(500).send({ |
| 13 | error: 'Something went wrong.' |
| 14 | }); |
| 15 | } |
| 16 | }; |
| 17 | |
| 18 | const getPlayStatTypes = async (req, res) => { |
| 19 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected