Skip to content

Commit 2476fe6

Browse files
committed
Replace n with payload names for easier update debugging in upcoming launch script
1 parent 3f815c0 commit 2476fe6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/upcoming.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,12 @@ const year = /^[0-9]{4}$/;
171171
const output = await Promise.all(promises);
172172

173173
// 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}`);
174+
output.forEach((doc, index) => {
175+
if (doc.result.nModified !== 0) {
176+
console.log(`${payloads[index]} UPDATED`);
177+
} else {
178+
console.log(`${payloads[index]}`);
179+
}
177180
});
178181
} catch (err) {
179182
console.log(err.stack);

0 commit comments

Comments
 (0)