A web application allowing people to create an account, configure a profile, and share a list of URLs on that profile.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
345 B

'use strict';
/* globals db */
const cursor = db.users.find({ });
while (cursor.hasNext()) {
const user = cursor.next();
print(`updating user: ${user.username}`);
db.users.updateOne(
{ _id: user._id },
{
$set: {
stats: {
uniqueVisitCount: 0,
totalVisitCount: 0,
},
},
},
);
}