fix(user-service): handle optional fingerprint parameter

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-01-09 21:02:44 -08:00
parent 3efce36f92
commit 3a675bf3a3
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export class AuthController {
@Post('anonymous')
@HttpCode(HttpStatus.OK)
async createAnonymousSession(@Body() dto: CreateAnonymousDto) {
const result = await this.authService.createAnonymousSession(dto.fingerprint);
const result = await this.authService.createAnonymousSession(dto.fingerprint || '');
return {
success: true,
data: result,