From db8a901d92a7f1936deb3287b2dcba75cfc70de1 Mon Sep 17 00:00:00 2001 From: isaacbatista26 Date: Tue, 3 Sep 2024 18:04:46 -0300 Subject: [PATCH] fix: Consertando bug na consulta do ano de 2013 --- backend/src/services/tendersMonthService.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/services/tendersMonthService.js b/backend/src/services/tendersMonthService.js index dd05437..afca5a2 100644 --- a/backend/src/services/tendersMonthService.js +++ b/backend/src/services/tendersMonthService.js @@ -22,6 +22,8 @@ async function getTendersByMonth(start, end) { ); } + query = query.order('year', {ascending: true }).order('month', { ascending: true }); + const { data, error } = await query; if (error) {