This commit is contained in:
AdisakKanthawilang 2024-05-20 13:17:11 +07:00
parent 422510dbe3
commit eb41d529c7

View file

@ -64,9 +64,9 @@ export class StrategyController extends Controller {
order: { createdAt: "ASC" },
});
if (!listStrategyChild1 || listStrategyChild1.length === 0) {
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลยุทธศาสตร์");
}
// if (!listStrategyChild1 || listStrategyChild1.length === 0) {
// throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลยุทธศาสตร์");
// }
const formattedData = listStrategyChild1.map((item) => ({
id: item.id,