Skip to content

Commit

Permalink
Remove extra brackets from the OData URL expression
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Dec 9, 2024
1 parent 4cb634b commit dfd2bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resources/odata.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ module.exports = (service, endpoint) => {
});

// TODO: because of the way express compiles the *, we have to register this twice.
service.get(`${base}/Submissions\\((:uuid)\\)`, singleRecord);
service.get(`${base}/Submissions\\((:uuid)\\)/*`, singleRecord);
service.get(`${base}/Submissions\\(:uuid\\)`, singleRecord);
service.get(`${base}/Submissions\\(:uuid\\)/*`, singleRecord);

// serves table data.
service.get(`${base}/:table`, endpoint.odata.json(({ Forms, Submissions, env }, { auth, params, originalUrl, query }) =>
Expand Down

0 comments on commit dfd2bfb

Please sign in to comment.