Skip to content

Commit

Permalink
putting 1307 up for updation
Browse files Browse the repository at this point in the history
  • Loading branch information
saifalfalah committed Nov 28, 2020
1 parent cec3d4e commit a73b2bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/http/post-index/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let upForUpdate = [1307];
exports.checkClientVersion = (body) => {
if (!body.ver) throw new Error(606);
let supportedVersions = [...versions.ios12, ...versions.ios13];
// throwing error 607 even if the shortcut versions is anything that's not in ios12 and ios13 arrays
if (!supportedVersions.includes(parseInt(body.ver))) throw new Error(607);
};

Expand Down Expand Up @@ -215,13 +216,13 @@ exports.appendLatestVersionInformation = (downloadObject, ver) => {
// for iOS 12
switch (ver) {
case 1307:
downloadObject["ver"] = 1307;
downloadObject["ver"] = 1309;
// TODO: Update this link
downloadObject["latestLink"] =
"https://www.icloud.com/shortcuts/a72f16f4e3664c8daa0c0a5fc76182fe";
break;
default:
downloadObject["ver"] = 1307;
downloadObject["ver"] = 1309;
// TODO: Update this link
downloadObject["latestLink"] =
"https://www.icloud.com/shortcuts/a72f16f4e3664c8daa0c0a5fc76182fe";
Expand Down

0 comments on commit a73b2bd

Please sign in to comment.