Skip to content

Commit

Permalink
supported versions have been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
saifalfalah committed Oct 10, 2020
1 parent 625dce0 commit 0ef5aec
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/http/post-index/helpers.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
const parse = require("url-parse");
let isURL = require("is-url");
// const latestVersion = 1303;
/*
Versions:
1303: v3
1306: v3.1
1307: v3.1 iOS 12 RC1
1308: v3.1 iOS 12
*/

let supportedVersions = [1303, 1306, 1307, 1308];
let upForUpdate = [];

exports.checkClientVersion = (body) => {
if (!body.ver) throw new Error(606);
if (parseInt(body.ver) < parseInt(process.env.MIN_VER)) throw new Error(607);
if (!supportedVersions.includes(parseInt(body.ver))) throw new Error(607);
// if (parseInt(body.ver) < parseInt(process.env.MIN_VER)) throw new Error(607);
};

// implement this in SSVD
Expand Down

0 comments on commit 0ef5aec

Please sign in to comment.