(
req: AuthedRequestWithTenantAndBody<getThreadType>,
res: Response,
next: NextFunction
)
| 26 | |
| 27 | export class ThreadsController { |
| 28 | static async get( |
| 29 | req: AuthedRequestWithTenantAndBody<getThreadType>, |
| 30 | res: Response, |
| 31 | next: NextFunction |
| 32 | ) { |
| 33 | const thread = await ThreadsServices.get({ |
| 34 | ...req.body, |
| 35 | accountId: req.tenant?.id!, |
| 36 | }); |
| 37 | if (!thread) { |
| 38 | return next(new NotFound()); |
| 39 | } |
| 40 | res.json(thread); |
| 41 | } |
| 42 | static async find( |
| 43 | req: AuthedRequestWithTenantAndBody<findThreadType>, |
| 44 | res: Response, |
no outgoing calls
no test coverage detected