updating a column in a table does not work
I’m trying to delete a user from the users array and move it to the deletedusers array and it’s a JSON array in javascript using postgres sql, but I’m trying to add the user with push to the deletedusers array, I logged before and after and the push added the user to the array, but when saving the array with the deleted user replacing the old array without the deleted user, it doesn’t give an error, but it doesn’t do the replacement, in get it returns the array without that user in the array, I just want to replace the old array with the new one that has a new deleted user.
updating a column in a table does not work
I’m trying to delete a user from the users array and move it to the deletedusers array and it’s a JSON array in javascript using postgres sql, but I’m trying to add the user with push to the deletedusers array, I logged before and after and the push added the user to the array, but when saving the array with the deleted user replacing the old array without the deleted user, it doesn’t give an error, but it doesn’t do the replacement, in get it returns the array without that user in the array, I just want to replace the old array with the new one that has a new deleted user.