Merged PR 172: WORK_TYPEでのソートが失敗する問題を修正する
## 概要 [Task2016: WORK_TYPEでのソートが失敗する問題を修正する](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2016) - WorkTypeによるソート条件構築の実装が漏れていた箇所を修正 ## レビューポイント - 修正内容に問題はないか ## 動作確認状況 - テスト通過、ビルド成功
This commit is contained in:
parent
756f6155d5
commit
ee72a280c8
@ -452,7 +452,16 @@ const makeOrder = (
|
||||
file: { uploaded_at: direction },
|
||||
id: 'ASC',
|
||||
};
|
||||
case 'WORK_TYPE':
|
||||
return {
|
||||
priority: 'ASC',
|
||||
file: { work_type_id: direction },
|
||||
id: 'ASC',
|
||||
};
|
||||
default:
|
||||
// switchのcase漏れが発生した場合に型エラーになるようにする
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const _: never = sort_criteria;
|
||||
throw new Error();
|
||||
}
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user