mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
As mentioned in https://github.com/Unleash/unleash/pull/4816#discussion_r1334162284
This commit is contained in:
parent
b6b0f83e3d
commit
91edae3ccf
@ -170,19 +170,17 @@ export class GroupService {
|
||||
return [];
|
||||
}
|
||||
|
||||
async deleteGroup(id: number, userName?: string): Promise<void> {
|
||||
async deleteGroup(id: number, userName: string): Promise<void> {
|
||||
const group = await this.groupStore.get(id);
|
||||
|
||||
await this.groupStore.delete(id);
|
||||
|
||||
if (userName) {
|
||||
await this.eventStore.store({
|
||||
type: GROUP_DELETED,
|
||||
createdBy: userName,
|
||||
data: group,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async validateGroup(
|
||||
group: IGroupModel | ICreateGroupModel,
|
||||
|
Loading…
Reference in New Issue
Block a user