nodemailer not sending inside mocha test

I declared this in routes: router.get(‘/test’,userController.test); The function in the userController is declared this way: exports.test = function (req, res) { var transport = nodemailer.createTransport({ service: ‘gmail’, auth: { user: myuser, pass: mypass } }); const message = { from: ‘me@gmail.com’, to: ‘other@gmail.com’, subject: ‘Subject here’, text: ‘Text here’, html: ‘<html><body><div>html here</div></body></html>’ }; console.log(“message:”,message); transport.sendMail(message,…

Details

WooCommerce rest api include parameter not fetching variation with variable product

https://example.com/wp-json/wc/v3/products/10 product type=variable and it is working fine https://example.com/wp-json/wc/v3/products/11 product type=variation and it is working fine But it fetch only one product (with id 10) using include parameter like https://example.com/wp-json/wc/v3/products?include=10,11 I need help so that i can fetch 2 or more products (any type) in one API call

Details

Recover public key from message and signature

I try to recover a public key (not an address) from a message and a signature. I have the following message: def offer_hash(msg, nonce): types = [‘bytes’, ‘bytes’, ‘address’, ‘uint256’, ‘address’, ‘address’, ‘uint256’, ‘uint256’, ‘uint256’, ‘address’] return Web3.soliditySha3(types, [base58.b58decode(msg.model.multihash), base58.b58decode(msg.objective.multihash), msg.token.address, int(msg.cost.uint256), msg.validator.address, msg.lighthouse.address, int(msg.lighthouseFee.uint256), int(msg.deadline.uint256), int(nonce.uint256), msg.sender.address]) offer = Offer() offer.model = Multihash() offer.model.multihash…

Details

untracked files

~ master ?49 ❯ git status > warning: could not open directory ‘.Trash/’: Operation not permitted On branch master No commits yet Untracked files: (use “git add <file>…” to include in what will be committed) ~ master ?49 ❯ > nothing added to commit but untracked files present (use “git add” to track) What does…

Details