Skip to content

Instantly share code, notes, and snippets.

@traxanos
Created October 27, 2017 14:34
Show Gist options
  • Save traxanos/ed7a0ce104fd0afa170f20d509d4d459 to your computer and use it in GitHub Desktop.
Save traxanos/ed7a0ce104fd0afa170f20d509d4d459 to your computer and use it in GitHub Desktop.
Fix sync button in rocket.chat
--- a/programs/server/packages/rocketchat_ldap.js 2017-10-25 18:47:09.000000000 +0200
+++ b/programs/server/packages/rocketchat_ldap.js 2017-10-27 16:28:44.088377231 +0200
@@ -1057,6 +1057,9 @@
}, // 1
importNewUsers: function () { // 1
return importNewUsers; // 1
+ }, // 1
+ sync: function () { // 1
+ return sync; // 1
} // 1
}); // 1
var LDAP = void 0; // 1
@@ -1471,6 +1480,9 @@
module.watch(require("./sync"), { // 1
importNewUsers: function (v) { // 1
importNewUsers = v; // 1
+ }, // 1
+ sync: function (v) { // 1
+ sync = v; // 1
} // 1
}, 0); // 1
Meteor.methods({ // 3
@@ -1494,7 +1506,8 @@
} // 16
//
this.unblock(); // 18
- importNewUsers(); // 20
+ sync(); // 20
+ //importNewUsers(); // 20
return { // 22
message: 'Sync_in_progress', // 23
params: [] // 24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment