From 4ed1db3845a12b125fcb7dc999bc2ae52f2fe331 Mon Sep 17 00:00:00 2001 From: Weiko Date: Thu, 9 Jan 2025 18:29:09 +0100 Subject: [PATCH] fix AuthException parameters --- .../core-modules/auth/controllers/google-auth.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts b/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts index ebe6efef876b..d4a1cd485052 100644 --- a/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts +++ b/packages/twenty-server/src/engine/core-modules/auth/controllers/google-auth.controller.ts @@ -124,7 +124,7 @@ export class GoogleAuthController { }), ); } - throw new AuthException(AuthExceptionCode.INTERNAL_SERVER_ERROR, err); + throw new AuthException(err, AuthExceptionCode.INTERNAL_SERVER_ERROR); } } }