refactor: use dify_config to replace legacy usage of flask app's config (#9089)
This commit is contained in:
parent
8f670f31b8
commit
4d9160ca9f
27 changed files with 221 additions and 207 deletions
|
|
@ -15,7 +15,7 @@ class Storage:
|
|||
|
||||
def init_app(self, app: Flask):
|
||||
storage_factory = self.get_storage_factory(dify_config.STORAGE_TYPE)
|
||||
self.storage_runner = storage_factory(app=app)
|
||||
self.storage_runner = storage_factory()
|
||||
|
||||
@staticmethod
|
||||
def get_storage_factory(storage_type: str) -> type[BaseStorage]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue