(bug) add userId in the data which is sent to the server in pending