mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 19:47:20 +00:00
Migrate LocateUser to new Plugin structure
This commit is contained in:
parent
4a8a63e8b8
commit
63efaf84ee
16 changed files with 380 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
|||
export async function removeUserIdFromActiveAlerts(pluginData, userId: string) {
|
||||
const index = pluginData.state.usersWithAlerts.indexOf(userId);
|
||||
if (index > -1) {
|
||||
pluginData.state.usersWithAlerts.splice(index, 1);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue