Skip to content

Commit

Permalink
Allow to configure office areas without desks and rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1uev committed Jul 10, 2024
1 parent 334e2c0 commit 39f5438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/app-config/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export const officeArea = z.object({
capacity: z.number().min(1),
map: z.string(),
bookable: z.boolean().default(false),
desks: z.array(officeAreaDesk).min(1),
meetingRooms: z.array(officeRoom).min(1).optional(),
desks: z.array(officeAreaDesk),
meetingRooms: z.array(officeRoom).optional(),
})
export const office = z
.object({
Expand Down

0 comments on commit 39f5438

Please sign in to comment.