Skip to content

Commit

Permalink
feat(study-rooms): slots field always present
Browse files Browse the repository at this point in the history
  • Loading branch information
laggycomputer committed Jan 12, 2025
1 parent 54e6be4 commit d361789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/graphql/schema/study-rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const studyRoomsGraphQLSchema = `#graphql
description: String
directions: String
techEnhanced: Boolean!
slots: [Slot]
slots: [Slot]!
}
input StudyRoomsQuery {
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/schema/study-rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const studyRoomSchema = z.object({
description: z.string().optional(),
directions: z.string().optional(),
techEnhanced: z.boolean(),
slots: z.array(slotSchema).optional(),
slots: z.array(slotSchema),
});

export const studyRoomsPathSchema = z.object({
Expand Down

0 comments on commit d361789

Please sign in to comment.