Skip to content

Commit

Permalink
Merged bug-fix updating code to use comment field in stead of comment…
Browse files Browse the repository at this point in the history
…s field for UserMembership table
  • Loading branch information
Sebbben committed Nov 19, 2024
2 parents db46d02 + 973e323 commit 0e75318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/(pages)/(main)/volunteering/membership/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function MembershipPage() {
body: JSON.stringify({
name: newMemberName,
email: "",
comments: newMemberComment,
comment: newMemberComment,
seller_id: session.data.user.id,
semester_id: session.data.semester.id,
})
Expand Down
4 changes: 2 additions & 2 deletions app/api/v2/memberships/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function GET(req) {
lifetime: true,
honorary: true,
name: true,
comments: true,
comment: true,
date_joined: true
}
});
Expand Down Expand Up @@ -54,7 +54,7 @@ export async function POST(req) {
data: {
name: params.name,
email: params.email,
comments: params.comments,
comment: params.comments,
seller_id: params.seller_id,
semester_id: params.semester_id
}
Expand Down

0 comments on commit 0e75318

Please sign in to comment.