fix(request): approve request when retrying request (#3234)

chore(request): clarify comment
pull/3235/head
Danshil Kokil Mungur 2 years ago committed by GitHub
parent 7b6db50ae5
commit b5157010c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -492,8 +492,10 @@ requestRoutes.post<{
relations: { requestedBy: true, modifiedBy: true },
});
await request.updateParentStatus();
await request.sendMedia();
// this also triggers updating the parent media's status & sending to *arr
request.status = MediaRequestStatus.APPROVED;
await requestRepository.save(request);
return res.status(200).json(request);
} catch (e) {
logger.error('Error processing request retry', {

Loading…
Cancel
Save