Skip to content

Commit

Permalink
Also converting entries that has dot notation
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Mar 13, 2016
1 parent 79e8304 commit 6673943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = {
return null;
}
return Object.assign({}, bundle, {
entries: utils.reconvertDots(bundle.entries),
packages: utils.reconvertDots(bundle.packages)
});
});
Expand All @@ -81,13 +82,12 @@ module.exports = {
return null;
}
return Object.assign({}, bundle, {
entries: utils.reconvertDots(bundle.entries),
packages: utils.reconvertDots(bundle.packages)
});
});
},
uploadVendorsBundle: function (bundle) {
var manifest = JSON.parse(memoryFs.fs.readFileSync(path.join('/', 'api', 'sandbox', 'vendors', bundle.name, 'manifest.json')).toString());

return db.insert('bundles', {
name: bundle.name,
entries: utils.convertDots(bundle.entries),
Expand Down

0 comments on commit 6673943

Please sign in to comment.