change channel to receiver

This commit is contained in:
Mystikfluu
2022-08-10 23:45:57 +02:00
parent 781d6cf467
commit d37c883d89
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ module.exports = {
"dms_user_name","dms_text","dms_time","dms_special_text","dms_id","dms_from_bot","dms_reply_id"
]
let sql = `select ${columns.join(",")} from ipost.dms where (dms_channel = ?) order by dms_id desc;`
con.query(sql, [xor(encodeURIComponent(res.locals.username),otherperson)], function (err, result) {
let sql = `select ${columns.join(",")} from ipost.dms where (dms_receiver = ?) order by dms_id desc;`
con.query(sql, [otherperson], function (err, result) {
if (err) throw err;
res.json(result)
});