User sync fixes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
f39fa33b83
commit
937d5beefe
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue