backend-app-api: add missing check for pluginMetadata service
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
committed by
Patrik Oldsberg
parent
95799fba22
commit
0c1f57b6b6
@@ -107,6 +107,11 @@ export class BackendInitializer {
|
||||
}
|
||||
|
||||
if (isServiceFactory(feature)) {
|
||||
if (feature.service.id === coreServices.pluginMetadata.id) {
|
||||
throw new Error(
|
||||
`The ${coreServices.pluginMetadata.id} service cannot be overridden`,
|
||||
);
|
||||
}
|
||||
this.#serviceHolder.add(feature);
|
||||
} else if (isInternalBackendFeature(feature)) {
|
||||
if (feature.version !== 'v1') {
|
||||
|
||||
Reference in New Issue
Block a user