Merged PR 539: 動作確認不具合修正

## 概要
[Task2978: 動作確認不具合修正](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2978)

- 次タスク取得時のパラメータをNumberで取得できるように修正

## レビューポイント
- 共有

## UIの変更
- なし

## 動作確認状況
- ローカルで確認
This commit is contained in:
makabe.t 2023-10-30 07:06:31 +00:00
parent e6da791406
commit f33af7a9cd
2 changed files with 5 additions and 1 deletions

View File

@ -186,7 +186,9 @@ export class TasksService {
); );
// 指定タスクのインデックスを取得する // 指定タスクのインデックスを取得する
const targetTaskIndex = tasks.findIndex((x) => x.audio_file_id == fileId); const targetTaskIndex = tasks.findIndex(
(x) => x.audio_file_id === fileId,
);
// 指定したタスクが見つからない場合はエラーとする(リポジトリからは必ず取得できる想定) // 指定したタスクが見つからない場合はエラーとする(リポジトリからは必ず取得できる想定)
if (targetTaskIndex === -1) { if (targetTaskIndex === -1) {

View File

@ -190,6 +190,8 @@ export class TasksResponse {
} }
export class AudioNextRequest { export class AudioNextRequest {
@ApiProperty({ description: '文字起こし完了したタスクの音声ファイルID' }) @ApiProperty({ description: '文字起こし完了したタスクの音声ファイルID' })
@Type(() => Number)
@IsInt()
endedFileId: number; endedFileId: number;
} }