fix: ping urls are not reset when restarting (#924)

This commit is contained in:
Meier Lukas
2024-08-08 20:36:51 +02:00
committed by GitHub
parent f9e2df085b
commit 365e267b8d
3 changed files with 20 additions and 1 deletions

View File

@@ -77,6 +77,12 @@ export const createListChannel = <TItem>(name: string) => {
removeAsync: async (item: TItem) => {
await getSetClient.lrem(listChannelName, 0, superjson.stringify(item));
},
/**
* Clear all items from the channels list
*/
clearAsync: async () => {
await getSetClient.del(listChannelName);
},
/**
* Add an item to the channels list
* @param item item to add