Skip to content

Commit

Permalink
fix: easy init db file not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
hubcarl committed Jan 30, 2020
1 parent daca939 commit 8538085
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/lib/db/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
'use strict';
const path = require('path');
const shortid = require('shortid');
const dbpath = path.resolve(__dirname, 'blog.json');
module.exports = class DB {
constructor(name = 'blog.json') {
constructor(name = dbpath) {
this.name = name;
}
getUniqueId() {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "egg-react-webpack-awesome-boilerplate",
"version": "4.2.0",
"version": "4.2.1",
"description": "基于 easywebpack-react 和 egg-view-react-ssr 插件服务端渲染工程骨架项目",
"scripts": {
"clean": "easy clean all",
Expand Down

0 comments on commit 8538085

Please sign in to comment.