tachybase_todo/packages/plugin-notifications/src/server.ts
ChengLei Shao 8e4336cbe1
feat(server): improve application (#177)
* feat: getRepository

* getRepository return type

* export action

* refactor(plugin-acl): plugin

* refactor(plugin-action-logs): plugin class

* refactor(plugin-china-region): plugin class

* refactor: plugin class

* fix: cli start command

* feat: pass install-command options into app.install

* fix: cli args

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-02-07 01:14:00 +08:00

11 lines
246 B
TypeScript

import path from 'path';
import { Plugin } from '@nocobase/server';
export default class PluginNotifications extends Plugin {
async load() {
await this.app.db.import({
directory: path.resolve(__dirname, 'collections'),
});
}
}