You've already forked joplin
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:
@ -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')
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user