fix(auth): inscription AM — persister photo si photo_base64 sans photo_filename (#120)
- Défaut nom fichier photo_am.jpg ; extension finale dérivée du data-URL - Swagger DTO + description endpoint register/am Made-with: Cursor
This commit is contained in:
@@ -76,7 +76,12 @@ export class RegisterAMCompletDto {
|
||||
@IsString()
|
||||
photo_base64?: string;
|
||||
|
||||
@ApiProperty({ example: 'photo_profil.jpg', required: false })
|
||||
@ApiProperty({
|
||||
example: 'photo_profil.jpg',
|
||||
required: false,
|
||||
description:
|
||||
'Nom du fichier photo (optionnel si photo_base64 est fourni ; défaut serveur : photo_am.jpg). L’extension réelle du fichier stocké suit le type MIME du data-URL.',
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
photo_filename?: string;
|
||||
|
||||
Reference in New Issue
Block a user