mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
fix: specify default dispatcher in job runner (#2191)
This commit is contained in:
parent
57991f4d6b
commit
737c561227
1 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,7 @@ from app.email_utils import (
|
|||
send_email,
|
||||
render,
|
||||
)
|
||||
from app.events.event_dispatcher import PostgresDispatcher
|
||||
from app.import_utils import handle_batch_import
|
||||
from app.jobs.event_jobs import send_alias_creation_events_for_user
|
||||
from app.jobs.export_user_data_job import ExportUserDataJob
|
||||
|
@ -276,7 +277,9 @@ SimpleLogin team.
|
|||
user = User.get(user_id)
|
||||
if user and user.activated:
|
||||
LOG.d(f"Sending alias creation events for {user}")
|
||||
send_alias_creation_events_for_user(user)
|
||||
send_alias_creation_events_for_user(
|
||||
user, dispatcher=PostgresDispatcher.get()
|
||||
)
|
||||
else:
|
||||
LOG.e("Unknown job name %s", job.name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue