Hi I have a simple message pinboard. each new message gets sent in by clicking āsendā however instead of creating a new message in the db it just updates the previous (unless I refresh the app)
const send = msg => {
const PBMessage = moralis.Object.extend(PinBoardMessage)
const pbmessage = new PBMessage()
pbmessage.set(āmessageā, msg)
pbmessage
.save()
.then(res => {
console.log(āmessage saved to dbā)
console.log(res)
message.value = āā
})
.catch(err => console.error(err))