Yeah, I got the same error, it seems that the Editor was updated and no longer accept this ASYNC/AWAIT syntax, so here is the old way:
function queryDataRelatedUser(userId) {
wixData.query("client-records")
.eq("relatedUser", userId)
.find()
.then(results => {
return results.items
})
}
Just replace the last function and put this one instead.