diff --git a/src/khoj/configure.py b/src/khoj/configure.py index b60c00d1..3fb540bd 100644 --- a/src/khoj/configure.py +++ b/src/khoj/configure.py @@ -172,7 +172,7 @@ class UserAuthenticationBackend(AuthenticationBackend): request=request, telemetry_type="api", api="create_user", - metadata={"user_id": str(user.uuid)}, + metadata={"server_id": str(user.uuid)}, ) logger.log(logging.INFO, f"🥳 New User Created: {user.uuid}") else: diff --git a/src/khoj/routers/auth.py b/src/khoj/routers/auth.py index 98702041..3002503e 100644 --- a/src/khoj/routers/auth.py +++ b/src/khoj/routers/auth.py @@ -90,7 +90,7 @@ async def login_magic_link(request: Request, form: MagicLinkForm): request=request, telemetry_type="api", api="create_user", - metadata={"user_id": str(user.uuid)}, + metadata={"server_id": str(user.uuid)}, ) logger.log(logging.INFO, f"🥳 New User Created: {user.uuid}") @@ -175,7 +175,7 @@ async def auth(request: Request): request=request, telemetry_type="api", api="create_user", - metadata={"user_id": str(khoj_user.uuid)}, + metadata={"server_id": str(khoj_user.uuid)}, ) logger.log(logging.INFO, f"🥳 New User Created: {khoj_user.uuid}") return RedirectResponse(url=next_url, status_code=HTTP_302_FOUND) diff --git a/src/khoj/routers/subscription.py b/src/khoj/routers/subscription.py index abaac675..14a75da8 100644 --- a/src/khoj/routers/subscription.py +++ b/src/khoj/routers/subscription.py @@ -82,7 +82,7 @@ async def subscribe(request: Request): request=request, telemetry_type="api", api="create_user", - metadata={"user_id": str(user.user.uuid)}, + metadata={"server_id": str(user.user.uuid)}, ) logger.log(logging.INFO, f"🥳 New User Created: {user.user.uuid}")