cp .env.example .env
npm i
node app.js input.json
npm run test
npm run coverage
- Change CashCommission model. We need to move asynchronous data getters to another location, and standardize the model. Suggested structure for this model:
{
cash_operation_type: string,
user_type: string,
rules: [
{
rule: string, //min, max, week_limit
amount: number,
currency: string
}
]
}
- Move User.transactionsHistory to a separate model