Skip to content

Commit

Permalink
Version up to test
Browse files Browse the repository at this point in the history
  • Loading branch information
akawashiro committed May 6, 2023
1 parent bcbfdd3 commit 61a2fb7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions jendeley-backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jendeley-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.3.0",
"version": "2.0.0",
"description": "",
"main": "index.js",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion jendeley-backend/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const JENDELEY_VERSION = "1.3.0";
const JENDELEY_VERSION = "2.0.0";
const JENDELEY_NO_TRACK = "[jendeley no track]";
const JENDELEY_NO_ID = "[jendeley no id]";
const ENTRY_ID_TYPE = "idType";
Expand Down
7 changes: 3 additions & 4 deletions jendeley-backend/src/validate_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ function validateJsonDB(jsonDB: JsonDB, dbPath: string[] | undefined): boolean {
const id_type = jsonDB[id][ENTRY_ID_TYPE];
if (id_type == ID_TYPE_META) {
const version = parseFloat(jsonDB[id]["version"]);
// Enable this check after version 2.0
// if (version < 2.0) {
// validDB = false;
// }
if (version < 2.0) {
validDB = false;
}
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion jendeley-frontend/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const JENDELEY_VERSION = "1.3.0";
const JENDELEY_VERSION = "2.0.0";
const JENDELEY_NO_TRACK = "[jendeley no track]";
const JENDELEY_NO_ID = "[jendeley no id]";
const ENTRY_ID_TYPE = "idType";
Expand Down

0 comments on commit 61a2fb7

Please sign in to comment.