I have a db table which has a column which I want to hash and store in another column in the same table. Once the select query runs it triggers this query:
The problem I am having is that the secure_key value in the newData array doesn't change from the first iteration. When I watch the getBcrypt object in the left-hand panel I can see the response updating as each install_key is passed to it but for some reason the value of getBcrypt.data.hash gets stuck on the first response and doesn't inherit subsequent responses. I have forumed this one to death but couldn't work out what's the issue so I'd be so grateful if one of you kind folks could help me out. Many thanks in advance.
Something strange happening here. The following query triggers the subsequent one which should return a fresh array of newData each time it runs. But it doesn't. I can see the values of state1 and state 2 changing in the left panel but when console.log( state2.value[i],state1.value[i].hash) gives the values from the previous iteration. So how do I access the new values of state1 and state2?