From dd60a37d5c1b3cc0f6abad776bf21ce5455f6d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Demazi=C3=A8re?= Date: Tue, 5 Apr 2022 15:08:41 +0200 Subject: [PATCH] idb getById instead of get --- package.json | 2 +- src/utils/indexeddb/services/surveyUnit-idb-service.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bc3975d71..3292c2e01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pearl", - "version": "0.5.6", + "version": "0.5.7", "private": true, "dependencies": { "@date-io/date-fns": "1.x", diff --git a/src/utils/indexeddb/services/surveyUnit-idb-service.js b/src/utils/indexeddb/services/surveyUnit-idb-service.js index 9ad460f6b..14ce131b8 100644 --- a/src/utils/indexeddb/services/surveyUnit-idb-service.js +++ b/src/utils/indexeddb/services/surveyUnit-idb-service.js @@ -7,7 +7,7 @@ class SurveyUnitIdbService extends AbstractIdbService { async addOrUpdateSU(item) { const { id, ...other } = item; - const surveyUnit = await this.get(id); + const surveyUnit = await this.getById(id); /* prevent duplicated survey-unit */ if (surveyUnit) { return this.update(item);