Skip to content
Snippets Groups Projects
Commit 01c64af1 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Merge branch...

Merge branch '216-le-service-enedismonthlyanalysis-se-lance-meme-lorsque-l-utilisateur-n-a-pas-de-donnee-a-la' into 'dev'

Resolve "Le service enedismonthlyAnalysis se lance même lorsque l'utilisateur n'a pas de donnée à la demi heure"

Closes #216

See merge request web-et-numerique/llle_project/ecolyo!560
parents 80a52d60 feb09ee1
Branches
Tags
2 merge requests!584chore(release): 1.8.1,!560Resolve "Le service enedismonthlyAnalysis se lance même lorsque l'utilisateur n'a pas de donnée à la demi heure"
...@@ -195,7 +195,7 @@ const syncEnedisMonthlyAnalysisDataDoctype = async ({ ...@@ -195,7 +195,7 @@ const syncEnedisMonthlyAnalysisDataDoctype = async ({
)) as DataloadEntity[] )) as DataloadEntity[]
const lastEnedisMonthlyAnalysis = await emas.getLastEnedisMonthlyAnalysis() const lastEnedisMonthlyAnalysis = await emas.getLastEnedisMonthlyAnalysis()
if (firstMinuteData) { if (firstMinuteData && firstMinuteData[0]) {
//First creates the analysis of the month - 1 //First creates the analysis of the month - 1
log('info', 'Fetching last Enedis monthly Analysis...') log('info', 'Fetching last Enedis monthly Analysis...')
const firstMinuteDate = DateTime.fromObject({ const firstMinuteDate = DateTime.fromObject({
...@@ -293,6 +293,7 @@ const syncEnedisMonthlyAnalysisDataDoctype = async ({ ...@@ -293,6 +293,7 @@ const syncEnedisMonthlyAnalysisDataDoctype = async ({
'info', 'info',
'Enedis Minute is not activated or there is no data yet in this doctype' 'Enedis Minute is not activated or there is no data yet in this doctype'
) )
return
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment