diff options
Diffstat (limited to 'bucky/app/bucky.js')
| -rw-r--r-- | bucky/app/bucky.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js index 478b71b..ab153f9 100644 --- a/bucky/app/bucky.js +++ b/bucky/app/bucky.js @@ -423,6 +423,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, @@ -513,9 +514,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(){}) + + }) } }) }) |
