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

15 lines
330 B
JavaScript
Raw Normal View History

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