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);