Skip to content

Commit

Permalink
fixed membersips post endoint expecting comments, now expects comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebbben committed Nov 19, 2024
1 parent 9487f21 commit ad2c178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/v2/memberships/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function POST(req) {
const params = await req.json()
const authCheck = new Auth(session, params)
.requireRoles([])
.requireParams(["name", "email", "comments", "seller_id", "semester_id"])
.requireParams(["name", "email", "comment", "seller_id", "semester_id"])

if (authCheck.failed) return authCheck.response

Expand All @@ -60,7 +60,7 @@ export async function POST(req) {
data: {
name: params.name,
email: params.email,
comment: params.comments,
comment: params.comment,
seller_id: params.seller_id,
semester_id: params.semester_id
}
Expand Down

0 comments on commit ad2c178

Please sign in to comment.