1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

All: Fixed "Invalid lock client type" error when migrating sync target

This commit is contained in:
Laurent Cozic
2021-12-13 10:32:22 +01:00
parent 78c5877c65
commit e0e93c436b
4 changed files with 17 additions and 13 deletions

View File

@ -2,6 +2,7 @@ import shim from '../../../shim';
import MigrationHandler from '../MigrationHandler';
import Setting from '../../../models/Setting';
import { reg } from '../../../registry';
import { appTypeToLockType } from '../LockHandler';
const { useEffect, useState } = shim.react();
export interface SyncTargetUpgradeResult {
@ -28,7 +29,7 @@ export default function useSyncTargetUpgrade(): SyncTargetUpgradeResult {
synchronizer.api(),
reg.db(),
synchronizer.lockHandler(),
Setting.value('appType'),
appTypeToLockType(Setting.value('appType')),
Setting.value('clientId')
);