refs #6276 feat:warehouse

This commit is contained in:
Sergio De la torre 2024-03-12 12:17:55 +01:00
parent a34be6ca02
commit bc0e34c146
1 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,11 @@ module.exports = Self => {
fields,
};
return Self.findOne(filter);
const result = await Self.findOne(filter);
return {
isVersionCritical: result?.isVersionBetaCritical ?? result?.isVersionCritical,
version: result?.versionBeta ?? result?.version,
url: result?.urlBeta ?? result?.urlProduction
};
};
};