- Failure on the first sync
This commit is contained in:
vorotamoroz
2022-04-07 16:17:20 +09:00
parent 221cccb845
commit b4b9684a55
5 changed files with 12 additions and 12 deletions

View File

@@ -146,7 +146,7 @@ export const checkRemoteVersion = async (db: PouchDB.Database, migrate: (from: n
if (version == barrier) return true;
return false;
} catch (ex) {
if (ex.status && ex.status == 404) {
if ((ex.status && ex.status == 404) || (ex.message && ex.message == "Request Error:404")) {
if (await bumpRemoteVersion(db)) {
return true;
}