|
@@ -26,7 +26,7 @@ class InstallService extends CrudService {
|
|
|
const model = this.ctx.model.User.User;
|
|
|
const num = await model.count({ code: 'self' });
|
|
|
if (num > 0) return;
|
|
|
- const p = path.resolve(this.dataIndex, 'selfShop.js');
|
|
|
+ const p = path.resolve(this.dataIndex, 'user.js');
|
|
|
const data = require(p);
|
|
|
await model.create(data);
|
|
|
}
|