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) {
return new Promise((resolve, reject) => {
hf.database.get(
"SELECT count,board_id FROM vinboard WHERE message_id = $id",
hf.database.run(
"SELECT * FROM vinboard WHERE message_id = $id",
{
$id: id,
},
(err, row) => {
(err) => {
logger.debug("vinboard", JSON.stringify(arguments));
if (err == null) {
logger.debug("vinboard", JSON.stringify(row));
resolve({});
resolve(row);
} else {
reject(err);
}