@@ -1,6 +1,6 @@
|
||||
import { Body, Controller, Param, Put, UseGuards } from '@nestjs/common';
|
||||
import { AuthService } from './auth.service';
|
||||
import { SaveHqListColumnPrefsDto } from './dto/auth.dto';
|
||||
import { SaveHqListColumnPrefsDto, UpdateMyHqCredentialsDto } from './dto/auth.dto';
|
||||
import { JwtAuthGuard } from '../../common/guards/jwt-auth.guard';
|
||||
import { CurrentUser } from '../../common/decorators/current-user.decorator';
|
||||
import { AuthUser } from '../../common/guards/jwt-auth.guard';
|
||||
@@ -18,4 +18,9 @@ export class AdminMeController {
|
||||
) {
|
||||
return this.authService.updateMyListColumnPrefs(user.actorType, user.actorId, listKey, dto);
|
||||
}
|
||||
|
||||
@Put('credentials')
|
||||
updateCredentials(@CurrentUser() user: AuthUser, @Body() dto: UpdateMyHqCredentialsDto) {
|
||||
return this.authService.updateMyHqCredentials(user.actorType, user.actorId, dto);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user