user-group.js 538 B

1234567891011121314151617181920212223
  1. const logger = require('@alias/logger')('growi:service:UserGroupService'); // eslint-disable-line no-unused-vars
  2. const mongoose = require('mongoose');
  3. const UserGroupRelation = mongoose.model('UserGroupRelation');
  4. /**
  5. * the service class of UserGroupService
  6. */
  7. class UserGroupService {
  8. constructor(configManager) {
  9. this.configManager = configManager;
  10. }
  11. async init() {
  12. logger.debug('removing all invalid relations');
  13. return UserGroupRelation.removeAllInvalidRelations();
  14. }
  15. }
  16. module.exports = UserGroupService;