Hi guys, I am having problems with inserting data from one data collection to another. I need some help

Hi, everyone.
I am trying to insert data to a collection, the data that needs to be inserted is a combination of data from a collection and two input field. I think the problem is at the ‘toInsert’ part but I am not really sure, I tested it and I now that it correctly gets the information and then correctly stores it in ‘let Status, let statusimage, etc’ but after that is done I can’t figure out how to insert it. I hope someone could take a look at this and help me out because I am stuck. you can find the code down below. ( I am building a status upload lightbox)


here is a link to my site: https://martijnjaarts.wixsite.com/localfactory



import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;

let user = wixUsers.currentUser
let isUserLoggedIn = user.loggedIn;

export function postStatusButton_click(event) {
console.log(“hello1”)
if ($w(“#statusTextInput”).value.length > 0){
console.log(“hello2”)
$w(“#ProfileDatatset”).onReady( () => {
console.log(“hello3”)
let ProfileData = $w(“#ProfileDatatset”).getCurrentItem();
let Status = $w(‘#statusTextInput’).value;
let statusimage = $w(‘#statusImageUpload’).value;
let loginemail = ProfileData.loginEmail;
let fullname = ProfileData.fullName;
let username = ProfileData.username;
let profilepicture = ProfileData.profileImageCircular;
console.log(Status)
console.log(loginemail)
console.log(fullname)
console.log(username)
console.log(profilepicture)

let toInsert = {
“status” : Status,
“statusImage”: statusimage,
“loginEmail”: loginemail,
“fullName”: fullname,
“userName”: username,
“profilePicture”: profilepicture,
};
wixData.insert(“UserStasusesData”, toInsert)
.then( (results) => {
console.log(“inserted”)
let result = results; //see item below
console.log(“inserted”)
console.log(result)
} )
})
}
}