foxwells.vinboard: more db debug
This commit is contained in:
parent
08aa0beb9d
commit
7169ac6362
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue