Merged PR 115: [MISOチーム] typeが「None」のステータスについてアカウント追加時(none)とユーザ追加時(None)で表記ゆれがある

## 概要
[Task1766: [MISOチーム] typeが「None」のステータスについてアカウント追加時(none)とユーザ追加時(None)で表記ゆれがある](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/1766)

タスク 1766: [MISOチーム] typeが「None」のステータスについてアカウント追加時(none)とユーザ追加時(None)で表記ゆれがある
・アカウント追加時のtypeを「none」から「None」に修正。

## レビューポイント
なし

## UIの変更
なし

## 動作確認状況
ローカルでアカウント登録APIを実行し、DBへの登録内容が「None」に修正されていることを確認。

## 補足
なし
This commit is contained in:
oura.a 2023-05-25 01:37:03 +00:00
parent fa23f7f2e2
commit 24a784b02f
2 changed files with 8 additions and 1 deletions

View File

@ -81,3 +81,9 @@ export const BLOB_STORAGE_REGION_EU = [
'TR',
'GB',
];
/**
* None
* @const {string}
*/
export const ROLE_NONE = 'None';

View File

@ -3,6 +3,7 @@ import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
import { ErrorResponse } from '../../common/error/types/types';
import { AccountsService } from './accounts.service';
import { CreateAccountRequest, CreateAccountResponse } from './types/types';
import { ROLE_NONE } from '../../constants';
@ApiTags('accounts')
@Controller('accounts')
@ -38,7 +39,7 @@ export class AccountsController {
adminName,
acceptedTermsVersion,
} = body;
const role = 'none';
const role = ROLE_NONE;
await this.accountService.createAccount(
companyName,