fix: remove event when update privilege
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
7e7d40ea1a
commit
ce372de1fd
|
@ -6,7 +6,6 @@ import {
|
|||
} from 'src/core/strings/constants/interface.constants';
|
||||
import { BaseCustomManager } from 'src/core/modules/domain/usecase/managers/base-custom.manager';
|
||||
import { UserPrivilegeConfigurationModel } from 'src/modules/user-related/user-privilege/data/models/user-privilege-configuration.model';
|
||||
import { UserPrivilegeConfigUpdatedEvent } from '../../../entities/event/user-privilege-configuration-updated.event';
|
||||
|
||||
@Injectable()
|
||||
export class UpdateUserPrivilegeConfigurationManager extends BaseCustomManager<UserPrivilegeConfigurationEntity> {
|
||||
|
@ -47,11 +46,18 @@ export class UpdateUserPrivilegeConfigurationManager extends BaseCustomManager<U
|
|||
}
|
||||
|
||||
get eventTopics(): EventTopics[] {
|
||||
/**
|
||||
* Remove Event update privilege
|
||||
* This event cause the privilege update twice
|
||||
* When I check this event function, the function to add privilege detail (view, create, update, etc)
|
||||
* But when case update, privilege doesn't need to add the privilege detail again
|
||||
* So, this event is not require in privilege update
|
||||
*/
|
||||
return [
|
||||
{
|
||||
topic: UserPrivilegeConfigUpdatedEvent,
|
||||
data: this.data,
|
||||
},
|
||||
// {
|
||||
// topic: UserPrivilegeConfigUpdatedEvent,
|
||||
// data: this.data,
|
||||
// },
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue