diff --git a/src/jio.storage/indexstorage.js b/src/jio.storage/indexstorage.js index e6123bb607ba628c004c71fa558a3208abbf3d93..7e6fbfd952021fac9d655c4bd1fd51e3871c69b6 100644 --- a/src/jio.storage/indexstorage.js +++ b/src/jio.storage/indexstorage.js @@ -744,7 +744,7 @@ if (just_check) { priv.getIndexDatabase(option, index, function (current_db) { if (db.equals(current_db)) { - return that.success({"ok": true, "_id": command.getDocId()}); + return that.success({"ok": true, "id": command.getDocId()}); } return that.error(generateErrorObject( "Different Index", @@ -754,7 +754,7 @@ }); } else { priv.storeIndexDatabaseList(db_list, {}, function () { - that.success({"ok": true, "_id": command.getDocId()}); + that.success({"ok": true, "id": command.getDocId()}); }); } }, diff --git a/test/jiotests.js b/test/jiotests.js index f546c4b06b623bcdeef14939ef10d4240e0f6275..8a5fe61aabe47a710d9cbed01b5fea3560fd593e 100644 --- a/test/jiotests.js +++ b/test/jiotests.js @@ -4703,19 +4703,19 @@ test("Check & Repair", function () { o.jio.check({"_id": "B"}, o.f); o.tick(o); - o.spy(o, "value", {"_id": "A", "ok": true}, "Repair database"); + o.spy(o, "value", {"id": "A", "ok": true}, "Repair database"); o.jio.repair({"_id": "A"}, o.f); o.tick(o); - o.spy(o, "value", {"_id": "B", "ok": true}, "Repair database"); + o.spy(o, "value", {"id": "B", "ok": true}, "Repair database"); o.jio.repair({"_id": "B"}, o.f); o.tick(o); - o.spy(o, "value", {"_id": "A", "ok": true}, "Check database again"); + o.spy(o, "value", {"id": "A", "ok": true}, "Check database again"); o.jio.check({"_id": "A"}, o.f); o.tick(o); - o.spy(o, "value", {"_id": "B", "ok": true}, "Check database again"); + o.spy(o, "value", {"id": "B", "ok": true}, "Check database again"); o.jio.check({"_id": "B"}, o.f); o.tick(o);