From 9a5500c32671a72c43d518c6d2263a9f0c9488b0 Mon Sep 17 00:00:00 2001 From: pep Date: Mon, 20 Jul 2020 21:38:51 +0000 Subject: moved search to redis, no more bdb --- bucky/app/bucky.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bucky/app/bucky.js') diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 3824c5e..8d9839f 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -413,6 +413,7 @@ var bucky = module.exports = { res.json({ error: "no comment" }) return } + console.log("in create comment") var data = { thread: res.thread.get('id'), parent_id: req.body.parent_id || -1, @@ -503,9 +504,15 @@ var bucky = module.exports = { privacy: false, storage: process.env.S3_BUCKET, } + req.body.comment = url+"\n"+file.originalname db.createFile(data).then(function(file){ resolve(file) - }).catch( (err) => reject(err) ) + }).catch( (err) => reject(err) ).then( + function(){ + console.log("about to call createComment") + bucky.createComment(req, res, function(){}) + + }) } }) }) -- cgit v1.2.3-70-g09d2