Skip to content

Commit

Permalink
Fix StorageOps in operator main
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Oct 1, 2024
1 parent 6b64ca7 commit 10ab1b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/btrixcloud/main_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from .crawlconfigs import CrawlConfigOps
from .crawls import CrawlOps
from .profiles import ProfileOps
from .storages import init_storages_api
from .storages import StorageOps
from .webhooks import EventWebhookOps
from .background_jobs import BackgroundJobOps
from .pages import PageOps
Expand Down Expand Up @@ -53,7 +53,7 @@ def main():

crawl_manager = CrawlManager()

storage_ops = init_storages_api(org_ops, crawl_manager)
storage_ops = StorageOps(org_ops, crawl_manager)

background_job_ops = BackgroundJobOps(
mdb, email, user_manager, org_ops, crawl_manager, storage_ops
Expand Down Expand Up @@ -93,6 +93,7 @@ def main():
crawl_ops.set_page_ops(page_ops)

background_job_ops.set_ops(crawl_ops, profile_ops)
storage_ops.set_ops(background_job_ops)

return init_operator_api(
app_root,
Expand Down

0 comments on commit 10ab1b6

Please sign in to comment.