foxwells.vinboard: bruh moment
This commit is contained in:
parent
7169ac6362
commit
303467a1e4
1 changed files with 2 additions and 7 deletions
|
@ -124,12 +124,7 @@ function getBoardEntry(id) {
|
|||
},
|
||||
(err, row) => {
|
||||
if (err == null) {
|
||||
logger.debug("vinboard", JSON.stringify(row));
|
||||
resolve(
|
||||
row?.message_id
|
||||
? {count: row?.count, board_id: row?.board_id}
|
||||
: null
|
||||
);
|
||||
resolve(row);
|
||||
} else {
|
||||
reject(err);
|
||||
}
|
||||
|
@ -302,7 +297,7 @@ async function processReaction(_msg, user, reaction) {
|
|||
(reactor) => reactor.id != msg.author.id
|
||||
).length;
|
||||
|
||||
const dbEntry = getBoardEntry(msg.id);
|
||||
const dbEntry = await getBoardEntry(msg.id);
|
||||
logger.debug("vinboard", JSON.stringify(dbEntry));
|
||||
if (dbEntry) {
|
||||
if (trueCount == 0) {
|
||||
|
|
Loading…
Reference in a new issue