diff --git a/lib/api/autoreply.js b/lib/api/autoreply.js index 97ca60aa..dd169ff6 100644 --- a/lib/api/autoreply.js +++ b/lib/api/autoreply.js @@ -150,6 +150,7 @@ module.exports = (db, server) => { return next(); } + result.value.user = user; r = await db.database.collection('autoreplies').updateOne({ user }, { $set: result.value }, { upsert: true }); res.json({