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,18 +170,16 @@ export class GroupService {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
async deleteGroup(id: number, userName?: string): Promise<void> {
|
async deleteGroup(id: number, userName: string): Promise<void> {
|
||||||
const group = await this.groupStore.get(id);
|
const group = await this.groupStore.get(id);
|
||||||
|
|
||||||
await this.groupStore.delete(id);
|
await this.groupStore.delete(id);
|
||||||
|
|
||||||
if (userName) {
|
await this.eventStore.store({
|
||||||
await this.eventStore.store({
|
type: GROUP_DELETED,
|
||||||
type: GROUP_DELETED,
|
createdBy: userName,
|
||||||
createdBy: userName,
|
data: group,
|
||||||
data: group,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async validateGroup(
|
async validateGroup(
|
||||||
|
Loading…
Reference in New Issue
Block a user