-async function addVideoCommentThreadRetryWrapper (req: express.Request, res: express.Response, next: express.NextFunction) {
- const options = {
- arguments: [ req, res ],
- errorMessage: 'Cannot insert the video comment thread with many retries.'
- }
-
- const comment = await retryTransactionWrapper(addVideoCommentThread, options)
-
- res.json({
- comment: comment.toFormattedJSON()
- }).end()
-}
-
-function addVideoCommentThread (req: express.Request, res: express.Response) {