* feat: improve code * chore: update version * feat: api service * fix: api services * feat: improve code * feat: improve code * feat: improve code * feat: pm socket * fix: test errors * feat: add built-in plugins before upgrade * feat: update docs * feat: improve code * fix: after load
11 lines
246 B
TypeScript
11 lines
246 B
TypeScript
import { Plugin } from '@nocobase/server';
|
|
import path from 'path';
|
|
|
|
export default class PluginNotifications extends Plugin {
|
|
async load() {
|
|
await this.app.db.import({
|
|
directory: path.resolve(__dirname, 'collections'),
|
|
});
|
|
}
|
|
}
|