From be2dac9163c48b6dc1d31eeac186ac6e1e7ac80c Mon Sep 17 00:00:00 2001 From: jspark2000 Date: Thu, 21 Mar 2024 15:54:30 +0000 Subject: [PATCH] fix: apply order-by query on get-unsubmit-list method --- backend/app/src/survey/survey.service.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/backend/app/src/survey/survey.service.ts b/backend/app/src/survey/survey.service.ts index d079195..71b7210 100644 --- a/backend/app/src/survey/survey.service.ts +++ b/backend/app/src/survey/survey.service.ts @@ -342,7 +342,19 @@ export class SurveyService { profileImageUrl: true } } - } + }, + orderBy: [ + { + Roster: { + admissionYear: 'asc' + } + }, + { + Roster: { + name: 'asc' + } + } + ] }) const unsubmitList = surveyTargets.map((item) => {