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:
parent
e6da791406
commit
f33af7a9cd
@ -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) {
|
||||
|
||||
@ -190,6 +190,8 @@ export class TasksResponse {
|
||||
}
|
||||
export class AudioNextRequest {
|
||||
@ApiProperty({ description: '文字起こし完了したタスクの音声ファイルID' })
|
||||
@Type(() => Number)
|
||||
@IsInt()
|
||||
endedFileId: number;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user