This commit is contained in:
Dung Nguyen 2022-03-03 18:33:54 +07:00
parent 0c115fe806
commit 687253bace

View File

@ -348,7 +348,7 @@ SELL: /sell:[number]`,
} }
if (text.startsWith('/view_history')) { if (text.startsWith('/view_history')) {
const dateQuery = text.replace('/view_history:'); const dateQuery = text.replace('/view_history:', '');
db.query( db.query(
`SELECT * FROM histories WHERE time like '%${dateQuery}' ORDER BY id asc`, `SELECT * FROM histories WHERE time like '%${dateQuery}' ORDER BY id asc`,
[], (error, results) => { [], (error, results) => {