🐛 Fix verification error for retailclient_publictest_0to200

This commit is contained in:
C-3PO 2018-09-30 14:50:58 +02:00
parent 161601d3d7
commit b027d86c5f
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -21,8 +21,8 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro
if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) { if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) {
throw new Error(`Expected reliable URL but it was "${file.reliable}".`); throw new Error(`Expected reliable URL but it was "${file.reliable}".`);
} }
if (!(['0', '1', '2']).includes(file['reliable-id'])) { if (!(['0', '1', '2', '3']).includes(file['reliable-id'])) {
throw new Error(`Expected reliable-id to be "0", "1" or "2" but it was "${file['reliable-id']}".`); throw new Error(`Expected reliable-id to be an integer in range 0-3 but it was "${file['reliable-id']}".`);
} }
if (file.info === undefined) { if (file.info === undefined) {