We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f815c0 commit 2476fe6Copy full SHA for 2476fe6
scripts/upcoming.js
@@ -171,9 +171,12 @@ const year = /^[0-9]{4}$/;
171
const output = await Promise.all(promises);
172
173
// Display if the document was found, and if it was modified or not
174
- output.forEach(doc => {
175
- console.log(`N: ${doc.result.n}`);
176
- console.log(`Modified: ${doc.result.nModified}`);
+ output.forEach((doc, index) => {
+ if (doc.result.nModified !== 0) {
+ console.log(`${payloads[index]} UPDATED`);
177
+ } else {
178
+ console.log(`${payloads[index]}`);
179
+ }
180
});
181
} catch (err) {
182
console.log(err.stack);
0 commit comments