Help putting multiple keys into redis

  • Goal: Trying to troubleshoot why this query isn't working

  • Steps:

HSET banned_wallets{{ 
  uploadBanned.data.reduce((acc, element) => 
    {return acc += " " + element["Wallet id"] + " '" + JSON.stringify(
      {
        "notes": notes2.value
      }
    ) + "'"}, ''
  )
}}

shows this output

"HSET banned_wallets 0x9c639158356583Ff47B256db7C4D36CdEaeD54cC '{"notes":"testv"}' 0x5345156a6f95252303FbC041f39E5F98EfBCe79B '{"notes":"testv"}' 0x34586D12B724fE523Bd34B2b98893a719b764eD8 '{"notes":"testv"}'"

which gives this error

addMultipleBanned failed (0.001s):Bad control character in string literal in JSON at position 11 (line 1 column 12)

addMultipleBanned

from addMultipleBanned response(addMultipleBanned)

:arrow_forward:in addMultipleBanned.trigger()(addMultipleBanned)

However if i paste that string directly into the command it works fine