mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-19 07:20:00 +00:00
7 lines
228 B
TypeScript
7 lines
228 B
TypeScript
![]() |
export async function removeUserIdFromActiveAlerts(pluginData, userId: string) {
|
||
|
const index = pluginData.state.usersWithAlerts.indexOf(userId);
|
||
|
if (index > -1) {
|
||
|
pluginData.state.usersWithAlerts.splice(index, 1);
|
||
|
}
|
||
|
}
|