Been using moralis for a few months, absolutely love it. But running into one of my first issues that iām stuck on, i feel like itās something super small that iām missing, but basically my const newUser = await userProfile.save
line is triggering the catch and giving me an āobject not foundā error. that said i am able to successfully log my userProfile in the line directly above it and can verify that both username and objectId exist. So not quite sure why itās failingā¦ side note for context, iām creating these rows in a userProfile class so can later add discordID, profilePic, shares in DAO, etcā¦ thanks any help greatly appreciated it, striking out on discord.
const username = user.username
const objectId = user.objectId
console.log("CREATING", username, objectId)
const UserProfile = Moralis.Object.extend('UserProfile');
const userProfile = new UserProfile()
console.log('USER PROFILE', userProfile)
try {
const newUser = await userProfile.save({
username: username,
objectId: objectId
})
return newUser
} catch(e) {
console.log('ERROR CREATinG', e.message)
}