tachybase_todo/packages/plugin-notifications/src/server.ts

11 lines
246 B
TypeScript
Raw Normal View History

2021-12-07 19:24:26 +08:00
import path from 'path';
import { Plugin } from '@nocobase/server';
2021-12-07 19:24:26 +08:00
export default class PluginNotifications extends Plugin {
2021-12-07 19:24:26 +08:00
async load() {
await this.app.db.import({
directory: path.resolve(__dirname, 'collections'),
});
}
}