foxwells.vinboard: more db debug

This commit is contained in:
Cynthia Foxwell 2022-12-02 23:46:31 -07:00
parent 08aa0beb9d
commit 7169ac6362

View file

@ -118,12 +118,13 @@ hf.database.run(
function getBoardEntry(id) {
return new Promise((resolve, reject) => {
hf.database.get(
"SELECT message_id,count,board_id FROM vinboard WHERE message_id = $id",
"SELECT * FROM vinboard WHERE message_id = $id",
{
$id: id,
},
(err, row) => {
if (err == null) {
logger.debug("vinboard", JSON.stringify(row));
resolve(
row?.message_id
? {count: row?.count, board_id: row?.board_id}