Node.js version: v14.15.4
- NPM version: 6.14.16
- Strapi version: 4.2.0
- Database: postgress : 8.6.0
- Operating system: ubuntu 18.10
A reusable function search() is written in ./config/index.js
How to reuse the same search() function to a lifecycles.js file (afterCreate)