summaryrefslogtreecommitdiff
path: root/bucky
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-15 07:54:51 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-15 07:54:51 +0100
commit0268adede50f0a4778e01c69bbf841df8b5fe148 (patch)
treec9898a54b13aef65b27d02c21056ce8cf7e738aa /bucky
parentfed23db0c56c14e22c4879957d2bdc8ef44831ad (diff)
paren
Diffstat (limited to 'bucky')
-rw-r--r--bucky/app/federate.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/app/federate.js b/bucky/app/federate.js
index 3833a33..64d4c89 100644
--- a/bucky/app/federate.js
+++ b/bucky/app/federate.js
@@ -15,7 +15,7 @@ module.exports = {
function importRaw (type, model) {
return (req, res, next) => {
console.log('importing', type, req.body.id)
- new db[model].forge(req.body).save().then((el) => {
+ new (db[model]).forge(req.body).save().then((el) => {
res.el = el;
next()
}).catch(e => {