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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue