From 9c5d417857376eef0fc7655c9abfc94485b3c6b3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 18 Nov 2023 06:52:07 -0500 Subject: [PATCH] fix: value is a map --- src/node.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node.ts b/src/node.ts index 0b31303..b5ec7f0 100644 --- a/src/node.ts +++ b/src/node.ts @@ -122,11 +122,11 @@ export class S5Node { if (!map.has(type)) return; map.get(type)!.forEach((value, key) => { - if (value[3] >= ts) { + if (value.get(3) >= ts) { const storageLocation = new StorageLocation( type, - value[1].map((v: string) => v), // Assuming value[1] is an array of strings - value[3], + value.get(1).map((v: string) => v), // Assuming value[1] is an array of strings + value.get(3), ); // Assuming providerMessage is a property of StorageLocation