🔐 Fix release path to verify from >= 0
This commit is contained in:
parent
7ce5a177ec
commit
e03f28f654
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,10 @@ import verifyProductName from '../ssn/verify/verifyProductName';
|
||||||
|
|
||||||
/** For the given release in the given product, returns from which releases we can patch to this release. */
|
/** For the given release in the given product, returns from which releases we can patch to this release. */
|
||||||
function getFroms({ product, to: releaseTo}: {product: Product, to: number}) {
|
function getFroms({ product, to: releaseTo}: {product: Product, to: number}) {
|
||||||
|
if (releaseTo < 0) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
//The launcher (patcher, patcher2014, patcher2017) is always installing from -1, never from a previous version
|
//The launcher (patcher, patcher2014, patcher2017) is always installing from -1, never from a previous version
|
||||||
if (product.startsWith('patcher')) {
|
if (product.startsWith('patcher')) {
|
||||||
return [-1];
|
return [-1];
|
||||||
|
|
Loading…
Reference in a new issue