aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.js b/index.js
index 595eaaac..561ea2f2 100644
--- a/index.js
+++ b/index.js
@@ -81,6 +81,8 @@ const l = console.log
})
const handlePayment = async msg => {
+ if (!msg.settled) return
+
let payment = await db.Payment.findOne({
include: { model: db.User, as: 'user' },
where: {