feat(server): rename contributionTier → contributionAmount in routes + utils
This commit is contained in:
parent
7a2acd4628
commit
57f5152be4
18 changed files with 35 additions and 35 deletions
|
|
@ -26,7 +26,7 @@ export default defineEventHandler(async (event) => {
|
|||
name: body.name,
|
||||
email: body.email,
|
||||
circle: body.circle,
|
||||
contributionTier: body.contributionTier,
|
||||
contributionAmount: body.contributionAmount,
|
||||
status: body.status,
|
||||
}, { new: true })
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ export default defineEventHandler(async (event) => {
|
|||
if (existing.name !== body.name) changedFields.push('name')
|
||||
if (existing.email !== body.email) changedFields.push('email')
|
||||
if (existing.circle !== body.circle) changedFields.push('circle')
|
||||
if (existing.contributionTier !== body.contributionTier) changedFields.push('contributionTier')
|
||||
if (existing.contributionAmount !== body.contributionAmount) changedFields.push('contributionAmount')
|
||||
if (existing.status !== body.status) changedFields.push('status')
|
||||
|
||||
if (changedFields.length) {
|
||||
|
|
@ -58,7 +58,7 @@ export default defineEventHandler(async (event) => {
|
|||
name: updated.name,
|
||||
email: updated.email,
|
||||
circle: updated.circle,
|
||||
contributionTier: updated.contributionTier,
|
||||
contributionAmount: updated.contributionAmount,
|
||||
status: updated.status,
|
||||
role: updated.role,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export default defineEventHandler(async (event) => {
|
|||
name: row.name,
|
||||
email: row.email,
|
||||
circle: row.circle,
|
||||
contributionTier: row.contributionTier,
|
||||
contributionAmount: row.contributionAmount,
|
||||
slackInvited: false
|
||||
})
|
||||
const saved = await member.save()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue