Skip to content

Commit

Permalink
fix: client ticket error
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Jun 1, 2024
1 parent 444d1f0 commit b24024a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/controllers/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export function ticketRoutes(fastify: FastifyInstance) {
priority: priority ? priority : "low",
email,
type: type ? type.toLowerCase() : "support",
createdBy: {
createdBy: createdBy ? {
id: createdBy.id,
name: createdBy.name,
role: createdBy.role,
email: createdBy.email
},
} : undefined,
client:
company !== undefined
? {
Expand Down

0 comments on commit b24024a

Please sign in to comment.