salix/modules/account/back/methods/user-account/sync-all.js

15 lines
330 B
JavaScript

module.exports = Self => {
Self.remoteMethod('syncAll', {
description: 'Synchronizes user database with LDAP and Samba',
http: {
path: `/syncAll`,
verb: 'PATCH'
}
});
Self.syncAll = async function() {
await Self.app.models.AccountConfig.syncUsers();
};
};