我需要以如下所示的内容运行sh脚本send.sh:如果我以*/2 * * * * /home/app/send.sh的形式使用crontab运行它,则不会输出任何内容。ReferenceError: Promise is not defined at Object.getData (/home/app/getData.js:15:18)
at /hom
我看到很多教程/指南使用collection.findOne({query}).field来获取文档中返回的字段的值,但对我来说,这似乎不起作用,我想知道为什么。不过,我还是想出了另一个办法。见下文: // My way of doing it console.log(doc.score); // Prints the actual score