create-dacosta-proj 1.0.14 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dacosta-proj",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "bin": {
5
5
  "create-dacosta-proj": "./index.js"
6
6
  }
@@ -144,7 +144,7 @@ module.exports = async () => {
144
144
 
145
145
  try {
146
146
  const result = await method({ userId: req.headers['user-id'], req, res, endpoint, headers: req.headers || {}, body: req?.body || {}, query: req?.query || {} });
147
- return res.status(result?.code || 200).json(result?.json || {});
147
+ return res.status(result?.code || 200).json(result?.json);
148
148
  }
149
149
  catch (err) {
150
150
  console.log('API Error', `Endpoint: ${endpoint}`, err);