User sync fixes
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-10-31 03:13:17 +01:00
parent f39fa33b83
commit 937d5beefe
1 changed files with 2 additions and 2 deletions

View File

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