Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cookiezaurs committed Dec 20, 2023
1 parent 316e491 commit 5f8af96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/jobs/userMerge.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var handleMerges = function(db, callback) {
resolve();
});
}
else if(user.t>100){
else if (user.t > 100) {
log.e("deleting document in merges with too many retries: " + user._id);
db.collection('app_user_merges').remove({"_id": user._id}, (err2)=>{
if (err2) {
Expand Down Expand Up @@ -78,7 +78,7 @@ var handleMerges = function(db, callback) {
}
else if (oldAppUser && newAppUser) {
db.collection('app_user_merges').update({"_id": user._id}, {"$inc": {"t": 1}}, {upsert: false}, function(err0) {
if(err0){
if (err0) {
log.e(err0);
}
//Both documents exists. We can assume that documents were not merged
Expand Down Expand Up @@ -121,7 +121,7 @@ var handleMerges = function(db, callback) {
}
else if (!user.mc) { //documents are merged, but metric changes and other plugins are not yet
db.collection('app_user_merges').update({"_id": user._id}, {"$inc": {"t": 1}}, {upsert: false}, function(err0) {
if(err0){
if (err0) {
log.e(err0);
}
db.collection("metric_changes" + app_id).update({uid: olduid}, {'$set': {uid: usersApi.merged_to}}, {multi: true}, function(err7) {
Expand Down

0 comments on commit 5f8af96

Please sign in to comment.