mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
chore(server): enable schedule module by default (#13173)
#### PR Dependency Tree * **PR #13173** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Simplified internal module management to ensure more consistent availability of core features. No visible changes to user-facing functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -113,6 +113,7 @@ export const FunctionalityModules = [
|
|||||||
WebSocketModule,
|
WebSocketModule,
|
||||||
JobModule.forRoot(),
|
JobModule.forRoot(),
|
||||||
ModelsModule,
|
ModelsModule,
|
||||||
|
ScheduleModule.forRoot(),
|
||||||
MonitorModule,
|
MonitorModule,
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -153,12 +154,8 @@ export function buildAppModule(env: Env) {
|
|||||||
// basic
|
// basic
|
||||||
.use(...FunctionalityModules)
|
.use(...FunctionalityModules)
|
||||||
|
|
||||||
// enable schedule module on graphql server and doc service
|
// enable indexer module on graphql server and doc service
|
||||||
.useIf(
|
.useIf(() => env.flavors.graphql || env.flavors.doc, IndexerModule)
|
||||||
() => env.flavors.graphql || env.flavors.doc,
|
|
||||||
ScheduleModule.forRoot(),
|
|
||||||
IndexerModule
|
|
||||||
)
|
|
||||||
|
|
||||||
// auth
|
// auth
|
||||||
.use(UserModule, AuthModule, PermissionModule)
|
.use(UserModule, AuthModule, PermissionModule)
|
||||||
|
|||||||
Reference in New Issue
Block a user