Skip to content

Commit 79b5eff

Browse files
committed
fix unit tests
1 parent 709082f commit 79b5eff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/api/routes/membership.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ const membershipPlugin: FastifyPluginAsync = async (fastify, _options) => {
225225
schema: z
226226
.object({
227227
netId: illinoisNetId,
228+
list: z.optional(z.string().min(1)),
228229
isPaidMember: z.boolean(),
229230
})
230231
.meta({

src/api/routes/organizations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ const organizationsPlugin: FastifyPluginAsync = async (fastify, _options) => {
2727
content: {
2828
"application/json": {
2929
schema: z
30-
.enum(AllOrganizationList)
31-
.default(JSON.stringify(AllOrganizationList)),
30+
.array(z.enum(AllOrganizationList))
31+
.default(AllOrganizationList),
3232
},
3333
},
3434
},

0 commit comments

Comments
 (0)