I somehow need to update the ip address associated to a certain user (row) in my database. I have stored the new ip I want to get in the database. This is what I am trying now but it isn’t working.
let toUpdate = {
“idusuario”: idusuario, //saved before
“ip”: ip, // new ip saved
“email”: userEmail, // saved before
};
wixData.update("Users", toUpdate)
.then((result) => {
let item = result;
})
. catch ((err) => {
let errorMsg = err;
});
I think I am missing something to really tell the code which row I want to replace.
Any thoughts?