Independence Note: Focus on the cleanup logic. Mock the authorization check.
Context:
When a member leaves a guild, we need to gracefully remove their membership record and log the departure.
Objective:
Implement a clean DELETE /guilds/:id/members/me endpoint.
Acceptance Criteria:
Technical Pointers:
- Add a guard to prevent the last remaining Admin from leaving without promoting someone else first.
Independence Note: Focus on the cleanup logic. Mock the authorization check.
Context:
When a member leaves a guild, we need to gracefully remove their membership record and log the departure.
Objective:
Implement a clean
DELETE /guilds/:id/members/meendpoint.Acceptance Criteria:
GuildMembershiprecord in Prisma.GuildActivityLog.Technical Pointers: