1 import { Response } from 'express'
2 import { AbuseModel } from '../../models/abuse/abuse'
4 async function doesAbuseExist (abuseId: number | string, res: Response) {
5 const abuse = await AbuseModel.loadByIdWithReporter(parseInt(abuseId + '', 10))
9 .json({ error: 'Abuse not found' })
14 res.locals.abuse = abuse
18 // ---------------------------------------------------------------------------