mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-10-19 06:59:54 +00:00
Filter packet history on the server when a single type, route or scope is selected
This commit is contained in:
+4
-1
@@ -58,12 +58,15 @@ function iatasParam(iatas?: string[]): string | undefined {
|
||||
|
||||
export function getPackets(
|
||||
iatas: string[] | undefined,
|
||||
params?: { cursor?: number; limit?: number },
|
||||
params?: { cursor?: number; limit?: number; payloadType?: number; routeType?: number; scope?: string },
|
||||
): Promise<CursorPage<PacketSummary>> {
|
||||
return request("/packets", {
|
||||
iatas: iatasParam(iatas),
|
||||
cursor: params?.cursor,
|
||||
limit: params?.limit ?? DEFAULT_PAGE_SIZE,
|
||||
payloadType: params?.payloadType,
|
||||
routeType: params?.routeType,
|
||||
scope: params?.scope,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user