4.66.0
Some checks failed
Build-Release-Image / Build-Image (linux/arm64) (push) Failing after 7m18s
Build-Release-Image / Build-Image (linux/amd64) (push) Has been cancelled
Build-Release-Image / Merge-Images (push) Has been cancelled
Build-Release-Image / Create-Release (push) Has been cancelled
Build-Release-Image / Notify (push) Has been cancelled

This commit is contained in:
2025-03-03 12:00:09 +00:00
parent ef9c09f76e
commit d09b3b992c
55 changed files with 801 additions and 545 deletions

View File

@ -1,10 +1,10 @@
from arrow import Arrow
from app import config
from app.account_linking import (
SLPlan,
SLPlanType,
)
from app.constants import JobType
from app.proton.proton_client import ProtonClient, UserInformation
from app.proton.proton_callback_handler import (
ProtonCallbackHandler,
@ -28,7 +28,7 @@ class MockProtonClient(ProtonClient):
def check_initial_sync_job(user: User, expected: bool):
found = False
for job in Job.yield_per_query(10).filter_by(
name=config.JOB_SEND_ALIAS_CREATION_EVENTS,
name=JobType.SEND_ALIAS_CREATION_EVENTS.value,
state=JobState.ready.value,
):
if job.payload.get("user_id") == user.id: