i want to share my data with ascii table but it does not show any results when i try to do it
my code
con.query(`SELECT * FROM illegalplatform_hackerdede1_gsm WHERE gsm="${mars}"`, function (err, result) {
let data = JSON.parse(JSON.stringify(result))
if (err) throw err;
data.map((o) => console.log(o.TC))
//if(data.length < 1) return ctx.reply(`<pre>${mesage1}</pre>`, {parse_mode: 'HTML'})
let arr = []
for ( const obj of result) {
arr.push(obj.GSM)
}
var { AsciiTable3, AlignmentEnum } = require('ascii-table3');
var sonuc1 =
new AsciiTable3(' ',' ')
.setHeading('Toplam:','1 Kişi.')
.setStyle('unicode-mix')
.setAlign(AlignmentEnum.AUTO)
.addRowMatrix([
['SONUÇ NO:','0'],
['Mars_UID : ', '34321'],
[`TCKN:`, `${data.map((o) => o.TC)}`],
['GSMN:', `${data.map((o) => o.GSM)}`],
])
ctx.reply(`<pre>${sonuc1}</pre>`, {parse_mode: 'HTML'});
})
and this is the result it gives
please help mee