System Information
- strapi 3.6.2
- Linux:
- PostgresQL:
- Node 12:
- NPM 6.14.10:
- Yarn 1.22.5:
Hi, I’m unable to get customization of service.js to work, can someone help?
Steps:
- git clone git@github.com:strapi/strapi.git
- cd strapi/examples/getstarted
- nano api/restaurant/services/Restaurant.js
- replace the file with following contents:
module.exports = {
async create(data, { files } = {}) {
console.log("Create restaurant --> now crash");
throw new Error("Crash");
},
};
- run
yarn develop
- add a restaurant in the admin console
I expected to see the console message and then some kind of error, without any restaurant being added. Instead, it does add the restaurant without showing any errors.