feat: OPNsense integration and widget (#3424)

Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>
This commit is contained in:
Benoit SERRA
2025-08-01 18:34:06 +02:00
committed by GitHub
parent 511551aee7
commit 1dc1854cbf
24 changed files with 1151 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ export {
createIntegrationOptionsChannel,
createWidgetOptionsChannel,
createChannelWithLatestAndEvents,
createChannelEventHistory,
handshakeAsync,
createSubPubChannel,
createGetSetChannel,

View File

@@ -232,7 +232,7 @@ export const createChannelEventHistory = <TData>(channelName: string, maxElement
if (length <= maxElements) {
return;
}
await getSetClient.ltrim(channelName, length - maxElements, length);
await getSetClient.ltrim(channelName, 0, maxElements - 1);
};
return {