Tests, UX improvements.
This commit is contained in:
parent
4e6f5d36b8
commit
0ae18f495e
63 changed files with 1384 additions and 2330 deletions
|
|
@ -13,12 +13,19 @@ export default defineEventHandler(async (event) => {
|
|||
return { success: true, message: 'Already in this circle' }
|
||||
}
|
||||
|
||||
const oldCircle = member.circle
|
||||
|
||||
await Member.findByIdAndUpdate(
|
||||
member._id,
|
||||
{ $set: { circle: body.circle } },
|
||||
{ runValidators: false }
|
||||
)
|
||||
|
||||
logActivity(member._id, 'circle_changed', {
|
||||
from: oldCircle,
|
||||
to: body.circle
|
||||
})
|
||||
|
||||
return {
|
||||
success: true,
|
||||
message: `Circle updated to ${body.circle}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue