@bytebrand/update-cbd-images
v0.59.35
Published
Update car basic data
Readme
The update-cbd-images package is responsible for create/delete/update imported or crawled cars into the system.
The plugin works with file system, so it is important to run it with environment develop-local
Parameters:
- environment, can be develop-local, develop, production;
- mongoUri, connection string in URI format to mongodb;
- apiKey, a code used to identify and authenticate an application;
- source, name of the target we work;
- hardcodedUser, default userId for which we are gonna create the cars;
- parallelCars, parallel cars processing per time;
- isCrawled, if true plugin works with crawled cars, otherwise - with regular;
- cronicleApiKey, key to validate request to cronicle;
- chainedEventIds, ids of the jobs related to the chain. More info you can find here;
###start script
./node_modules/.bin/ts-node src/index.ts
after it type next line
{"id": 1, "params": {"environment": "develop", "mongoURI": "", "apiKey": "", "hardcodedUser": "", "cronicleApiKey":"", "chainedEventIds":"", "parallelCars":10, "isCrawler": 0 }}
###start script on Cronicle
node node_modules/@bytebrand/update-cbd-images/dist/index.js
