salix/modules/account/back/methods/role-inherit/sync.js

15 lines
326 B
JavaScript
Raw Normal View History

2020-11-02 18:58:07 +00:00
2020-09-21 11:24:43 +00:00
module.exports = Self => {
Self.remoteMethod('sync', {
description: 'Synchronizes the user with the other user databases',
http: {
path: `/sync`,
verb: 'PATCH'
}
});
Self.sync = async function() {
await Self.app.models.AccountConfig.syncRoles();
2020-09-21 11:24:43 +00:00
};
};