fix(user-service): handle optional fingerprint parameter
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3efce36f92
commit
3a675bf3a3
|
|
@ -48,7 +48,7 @@ export class AuthController {
|
||||||
@Post('anonymous')
|
@Post('anonymous')
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
async createAnonymousSession(@Body() dto: CreateAnonymousDto) {
|
async createAnonymousSession(@Body() dto: CreateAnonymousDto) {
|
||||||
const result = await this.authService.createAnonymousSession(dto.fingerprint);
|
const result = await this.authService.createAnonymousSession(dto.fingerprint || '');
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
data: result,
|
data: result,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue