foxwells.vinboard: debug 5

This commit is contained in:
Cynthia Foxwell 2022-12-03 00:20:16 -07:00
parent 89f552deb0
commit 74dae2e49e

View file

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