-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
dev: add apps module, migrate AppInformationService
There are now several services related to apps, and RecommendedAppsService is about to be added, making this a good time to create a separate module for these services and migrate the legacy service AppInformationService. During migration it was realized that most of the initialization needed to occur at boot.consolidation rather than boot.init because the database needs to be initialized first.
1 parent
3ffb3cb
commit 2de442b
Showing
4 changed files
with
24 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const { AdvancedBase } = require("@heyputer/putility"); | ||
|
||
class AppsModule extends AdvancedBase { | ||
async install (context) { | ||
const services = context.get('services'); | ||
|
||
const { AppInformationService } = require('./AppInformationService'); | ||
services.registerService('app-information', AppInformationService); | ||
} | ||
} | ||
|
||
module.exports = { | ||
AppsModule | ||
}; |