Meteor.methods({
    addTips: function (numTips, targetUserId) {
        Meteor.users.update({_id: targetUserId}, {
            $inc: {
                tips: numTips
            }
        })
    }
})

Meteor.methods({
    addTips: function (targetUserId) {
        const numTips = 1;
        const userId = Meteor.userId();
        if (userId == targetUserId) {
            throw new Meteor.Error("Cannot add tips to yourself");
        }
        Meteor.users.update({_id: targetUserId}, {
            $inc: {
                tips: numTips
            }
        })
    }
})

Add control for not add tips to yourself
Add control for not add tips to yourself
