Migrate to pug
This commit is contained in:
@ -41,9 +41,8 @@ module.exports = (fastify, opts, done) => {
|
||||
fastify.level.db.get(req.params.id, (err, val) => {
|
||||
if(err){
|
||||
console.warn(err);
|
||||
reply.send({name:"New Journey", main:[]});
|
||||
reply.code(500).send();
|
||||
} else {
|
||||
console.log(JSON.parse(val))
|
||||
reply.send(JSON.parse(val));
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user