This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var schema = new mongoose.Schema({ | |
| stage: { type: Number, default: 1 }, | |
| phone: { type: String, required: true }, | |
| phoneExtra: { type: 'Mixed'}, // Dadata extended data | |
| loan: { type: Number, min: 1000, max: 17000 }, // Amount of desired money | |
| term: { type: Number, min: 1, max: 17}, // Term of the loan in days | |
| city: { type: 'ObjectId', ref: 'City'}, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Recipients of notificaton about new loan registered on website. | |
| * @type Object.<string, string> | |
| */ | |
| templates: { | |
| 'success-order-loan': { | |
| from: 'boria1966@gmail.com', | |
| to: 'boria1966@gmail.com', | |
| subjectJade: '| Новая заявка на заем #{id}, #{city}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| noti.sendLoanOrderSuccess = function(loanOrder, cb) { |
NewerOlder