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

15 lines
316 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'),
});
}
getName(): string {
return this.getPackageName(__dirname);
}
}