Files

11 lines
227 B
JavaScript

const db = require('../db')
const Misc = {}
// Log a successful honeypot catch.
Misc.logHoneypotCatch = async body => {
await db.query('INSERT INTO honeypot_log (body_content) VALUES ($1)', [body])
}
module.exports = Misc