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', {
|
Self.remoteMethod('syncAll', {
|
||||||
description: 'Synchronizes user database with LDAP and Samba',
|
description: 'Synchronizes user database with LDAP and Samba',
|
||||||
http: {
|
http: {
|
||||||
path: `/syncAll`,
|
path: `/sync-all`,
|
||||||
verb: 'PATCH'
|
verb: 'PATCH'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -99,7 +99,7 @@ module.exports = Self => {
|
||||||
try {
|
try {
|
||||||
await Self.doSync(sync, user);
|
await Self.doSync(sync, user);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(`Cannot sync user '${user}':`, err);
|
console.error(`Cannot sync user '${user}':`, err.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await Self.syncDeinit(sync);
|
await Self.syncDeinit(sync);
|
||||||
|
|
Loading…
Reference in New Issue