|
|
@@ -171,6 +171,7 @@ export const betSolution = async (sid, stake=0) => {
|
|
|
const solutionIorsInfo = await getSolutionIorsInfo(sid);
|
|
|
const { iorsInfo, cross_type } = solutionIorsInfo;
|
|
|
const solutionInfo = getSolutionByLatestIors(iorsInfo, cross_type);
|
|
|
+ return solutionInfo;
|
|
|
if (solutionInfo?.error) {
|
|
|
const error = new Error(solutionInfo.error, { cause: 400 });
|
|
|
error.data = solutionInfo.data;
|