S
Size: a a a
S
S
BA
BA
I
const verify = async(id) => {
let data;
await isVerify(id)
.then((res) => {
data = res;
});
console.log("data", data) //тут нормально возвращает
return data;
}
await console.log(verify(ctx.from.id)); // Promise { <pending> }
AP
const verify = async(id) => {
let data;
await isVerify(id)
.then((res) => {
data = res;
});
console.log("data", data) //тут нормально возвращает
return data;
}
await console.log(verify(ctx.from.id)); // Promise { <pending> }
I
VY
const attached = document.querySelector('#attachedFiles');
attached.addEventListener('change', function(event) {
attachedFiles = this.files;
let fileReader = new FileReader();
fileReader.onload = function(event) {
let result = event.target.result;
}
fileReader.readAsDataURL(attachedFiles);
console.log('attached files', attachedFiles);
});
axios.post(url,{rowData:getRow, targetEmail:targetEmail, attachedFiles:attachedFiles})
.then(function (response) {
if (response.data.response === 'ok') {
toastr["success"]('Email sent successfully!');
}
else {
toastr["warning"]('Email NOT sent', response.data.response);
}
})
.catch(function (error) {
toastr["error"](error);
});
OO
OO
꧁岡
꧁岡
OO
S
S
VH
꧁岡
OO
꧁岡
VH