fix loading of storage and not crash the request

This commit is contained in:
2026-04-06 17:59:10 +02:00
parent fdc22af4cf
commit 0af5f58688
+1 -1
View File
@@ -5,6 +5,6 @@ from .EdgeDB import EdgeDB
class StorageLoader:
@classmethod
def build(self, selected_storage:str) -> LocalStorage|EdgeDB:
storage_module = __import__(f"server.storage.{selected_storage}", fromlist=[selected_storage])
storage_module = __import__(f"server.database.{selected_storage}", fromlist=[selected_storage])
storage_class = getattr(storage_module, selected_storage)
return storage_class