feat(dm): migrated all the dm topics
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 4m26s

This commit is contained in:
2026-06-26 11:05:17 -05:00
parent 012a7e83b2
commit 47b149d1ea
48 changed files with 14156 additions and 44 deletions

View File

@@ -96,9 +96,18 @@ export const standardForecast = async (data: any, user: any) => {
});
}
return {
success: foreCastData[0].success,
message: foreCastData[0].message,
data: foreCastData,
};
if (foreCastData.length === 0) {
return {
success: false,
message:
"There was an error processing the forecast did you upload the correct file?",
data: [],
};
} else {
return {
success: foreCastData?.[0].success,
message: foreCastData?.[0].message,
data: foreCastData ?? [],
};
}
};