Skip to content

Commit

Permalink
backend(update): change passed author name schema
Browse files Browse the repository at this point in the history
  • Loading branch information
mohab-sameh committed Dec 24, 2024
1 parent 39309a3 commit 9204343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/backend/src/publishHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9204343

Please sign in to comment.