feat(dm): migrated all the dm topics
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 4m26s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 4m26s
This commit is contained in:
@@ -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 ?? [],
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user