Add admin notes and deletion tools for users

This commit is contained in:
Remi
2025-10-07 20:59:43 +02:00
parent 9ec12e4775
commit 5a4fa7737d
5 changed files with 208 additions and 26 deletions

View File

@@ -11,6 +11,7 @@ type UserListItem = {
createdAt: string
lastLoginAt?: string
invitationCodesIssued: number
adminNotes?: string
}
function mapUser(doc: any): UserListItem {
@@ -22,6 +23,7 @@ function mapUser(doc: any): UserListItem {
createdAt: doc.createdAt ? new Date(doc.createdAt).toISOString() : new Date().toISOString(),
lastLoginAt: doc.lastLoginAt ? new Date(doc.lastLoginAt).toISOString() : undefined,
invitationCodesIssued: doc.invitationCodesIssued || 0,
adminNotes: doc.adminNotes || '',
}
}