fix sort reason

This commit is contained in:
AdisakKanthawilang 2024-04-29 13:14:40 +07:00
parent 23e277c277
commit b7c0075f5a

View file

@ -241,6 +241,7 @@ export class KpiUserEvaluationController extends Controller {
async listKpiUserCommanderEvaluation(@Path() id: string, @Path() type: string) {
const kpiUserEvaluationReason = await this.kpiUserEvaluationReasonRepository.find({
where: { kpiUserEvaluationId: id, type: type.trim().toUpperCase() },
order: { createdAt: "ASC" }
});
return new HttpSuccess(kpiUserEvaluationReason);
}