Commit 6174eafe authored by Grant's avatar Grant
Browse files

defaults for req.body

parent ea11687e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ export class MatrixRoutes extends Router {
    res: e.Response
  ) {
    try {
      const { events, ephemeral } = req.body;
      const { events = [], ephemeral = [] } = req.body;

      await MatrixHandler.handleTransaction(
        req.params.txnId,