Skip to content

Commit

Permalink
Revert "backend(update): change passed author name schema (#1424)" (#…
Browse files Browse the repository at this point in the history
…1453)

This reverts commit 6149ce8.
  • Loading branch information
mohab-sameh authored Jan 22, 2025
1 parent 6149ce8 commit 5061f76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/backend/src/publishHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,7 @@ export const publishHandler: RouteHandler<{
},
author: {
username,
firstName: firstName ?? null,
lastName: lastName ?? null,
name: `${firstName ?? ""} ${lastName ?? ""}`.trim() || null,
email:
emailAddresses.find((e) => e.id === primaryEmailAddressId)
?.emailAddress ?? null,
Expand Down

0 comments on commit 5061f76

Please sign in to comment.