8e4336cbe1
* 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>
11 lines
246 B
TypeScript
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'),
|
|
});
|
|
}
|
|
}
|