From 937d5beefeb08dd3031d872d89a5c9a00713b74e Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sat, 31 Oct 2020 03:13:17 +0100 Subject: [PATCH] User sync fixes --- modules/account/back/methods/user-account/sync-all.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account/back/methods/user-account/sync-all.js b/modules/account/back/methods/user-account/sync-all.js index b4c687751..b004041d8 100644 --- a/modules/account/back/methods/user-account/sync-all.js +++ b/modules/account/back/methods/user-account/sync-all.js @@ -5,7 +5,7 @@ module.exports = Self => { Self.remoteMethod('syncAll', { description: 'Synchronizes user database with LDAP and Samba', http: { - path: `/syncAll`, + path: `/sync-all`, verb: 'PATCH' } }); @@ -99,7 +99,7 @@ module.exports = Self => { try { await Self.doSync(sync, user); } catch (err) { - console.error(`Cannot sync user '${user}':`, err); + console.error(`Cannot sync user '${user}':`, err.message); } } await Self.syncDeinit(sync);