@nakedcreativity/cee-ms-node 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -162,7 +162,8 @@ ceems.prototype.load = function(req, res){
162
162
  console.log('404 for ',path)
163
163
  res.status(404)
164
164
  // .send('Sorry, this page does not exist');
165
- this.render(req, res, JSON.parse(fs.readFileSync('./pages/healthcare.json', 'utf8')))
165
+ var notFound = this.site.pages['404']
166
+ return JSON.parse(fs.readFileSync('./pages/'+notFound._id+'.json', 'utf8'))
166
167
  }
167
168
 
168
169
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakedcreativity/cee-ms-node",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Cee.ms for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {