Git Repository Public Repository

YouAndWeb_TwoToc

URLs

Copy to Clipboard

Diff Revisions a98e8d ... vs f7c47c ... for server/api/show/show.controller.js

Diff revisions: vs.
  @@ -113,8 +113,8 @@
113 113 sq.title = new RegExp("^" + pattern + ".*$", 'i');
114 114 }
115 115 Show.find(sq).lean().limit(limit)
116 - .then(responseWithResult(res, true))
117 - .catch(handleError(res));
116 + .then(responseWithResult(res, true), handleError(res));
117 + /*.catch(handleError(res));*/
118 118 };
119 119
120 120
  @@ -122,15 +122,15 @@
122 122 exports.show = function(req, res) {
123 123 Show.findById(req.params.id).lean()
124 124 .then(handleEntityNotFound(res))
125 - .then(responseWithResult(res))
126 - .catch(handleError(res));
125 + .then(responseWithResult(res), handleError(res));
126 + /*.catch(handleError(res));*/
127 127 };
128 128
129 129 // Creates a new Show in the DB
130 130 exports.create = function(req, res) {
131 131 Show.createAsync(req.body)
132 - .then(responseWithResult(res, 201))
133 - .catch(handleError(res));
132 + .then(responseWithResult(res, 201), handleError(res));
133 + /*.catch(handleError(res));*/
134 134 };
135 135
136 136 // Updates an existing Show in the DB