RESOLVED - Understanding how hooks work

Forgive me, but why does not this work?

export function RedirectCerimonie_afterInsert() {

console.log('try AfterInsert'); 

}

export function SaveData_click() {
let toInsert = {
“dataEvento”: $w(" #ImptData “).value,
“tipoEvento”: $w(” #ImptEvent “).value,
“nomeEventoOErimonia”: $w(” #ImputName “).value,
“code”: $w(” #ImptCode “).value,
“utenteRedirect”: $w(” #ImpuUser “).value,
“redirect”: $w(” #ImputUrl “).value
};
wixData.insert(“RedirectCerimonie”, toInsert)
.then( (results) => {
$w(” #textSaveForm “).text = “Form salvato con successo”;
$w(” #textSaveForm ").show();
})
.catch( (err) => {
let errorMsg = err;
console.log(errorMsg);
});
}

Thank You