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() {
|
2020-11-12 22:20:25 +00:00
|
|
|
await Self.app.models.AccountConfig.syncRoles();
|
2020-09-21 11:24:43 +00:00
|
|
|
};
|
|
|
|
};
|