Skip to content

Commit 6297703

Browse files
committed
relay add owner script
1 parent 558677c commit 6297703

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/mongodb/relay-add-owner.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const owner = 'Javlonbek2418'.toLowerCase();
2+
const tourIds = 'wxjnFxN5 G8ZFMIJJ tO0H69qH'.split(' ');
3+
4+
db.relay_tour.updateMany({ _id: { $in: tourIds } }, { $addToSet: { ownerIds: owner } });

0 commit comments

Comments
 (0)