From 92043431586643958c06a1ea3f224064622415aa Mon Sep 17 00:00:00 2001 From: Mohab Sameh Date: Tue, 24 Dec 2024 18:00:27 +0200 Subject: [PATCH] backend(update): change passed author name schema --- apps/backend/src/publishHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/publishHandler.ts b/apps/backend/src/publishHandler.ts index 76bad9fde..d8582b466 100644 --- a/apps/backend/src/publishHandler.ts +++ b/apps/backend/src/publishHandler.ts @@ -418,7 +418,8 @@ export const publishHandler: RouteHandler<{ }, author: { username, - name: `${firstName ?? ""} ${lastName ?? ""}`.trim() || null, + firstName: firstName ?? null, + lastName: lastName ?? null, email: emailAddresses.find((e) => e.id === primaryEmailAddressId) ?.emailAddress ?? null,