Skip to content

Commit 3aa6e6c

Browse files
committed
..
1 parent ff35b89 commit 3aa6e6c

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

apps/meteor/ee/server/apps/orchestrator.js

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ function isTesting() {
3030

3131
const DISABLED_PRIVATE_APP_INSTALLATION = ['yes', 'true'].includes(String(process.env.DISABLE_PRIVATE_APP_INSTALLATION).toLowerCase());
3232

33-
let appsSourceStorageType;
34-
let appsSourceStorageFilesystemPath;
35-
3633
export class AppServerOrchestrator {
3734
constructor() {
3835
this._isInitialized = false;
@@ -56,7 +53,10 @@ export class AppServerOrchestrator {
5653
this._persistModel = AppsPersistence;
5754
this._storage = new AppRealStorage(this._model);
5855
this._logStorage = new AppRealLogStorage(this._logModel);
59-
this._appSourceStorage = new ConfigurableAppSourceStorage(appsSourceStorageType, appsSourceStorageFilesystemPath);
56+
this._appSourceStorage = new ConfigurableAppSourceStorage(
57+
settings.get('Apps_Framework_Source_Package_Storage_Type'),
58+
settings.get('Apps_Framework_Source_Package_Storage_FileSystem_Path'),
59+
);
6060

6161
this._converters = new Map();
6262
this._converters.set('messages', new AppMessagesConverter(this));
@@ -256,19 +256,3 @@ export class AppServerOrchestrator {
256256

257257
export const Apps = new AppServerOrchestrator();
258258
registerOrchestrator(Apps);
259-
260-
settings.watch('Apps_Framework_Source_Package_Storage_Type', (value) => {
261-
if (!Apps.isInitialized()) {
262-
appsSourceStorageType = value;
263-
} else {
264-
Apps.getAppSourceStorage().setStorage(value);
265-
}
266-
});
267-
268-
settings.watch('Apps_Framework_Source_Package_Storage_FileSystem_Path', (value) => {
269-
if (!Apps.isInitialized()) {
270-
appsSourceStorageFilesystemPath = value;
271-
} else {
272-
Apps.getAppSourceStorage().setFileSystemStoragePath(value);
273-
}
274-
});

0 commit comments

Comments
 (0)