foxwells.vinboard: debug 5
This commit is contained in:
parent
89f552deb0
commit
74dae2e49e
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue