1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Minor tweaks regarding encryption

This commit is contained in:
Laurent Cozic
2017-01-29 19:29:34 +01:00
parent 685f541bb4
commit 0115e74163
9 changed files with 19 additions and 8 deletions

View File

@ -65,7 +65,7 @@ reg.scheduleSync = async (delay = null) => {
const timeoutCallback = async () => {
reg.scheduleSyncId_ = null;
reg.logger().info('Doing scheduled sync');
reg.logger().info('Preparing scheduled sync');
const syncTargetId = Setting.value('sync.target');
@ -82,6 +82,7 @@ reg.scheduleSync = async (delay = null) => {
let context = Setting.value(contextKey);
context = context ? JSON.parse(context) : {};
try {
reg.logger().info('Starting scheduled sync');
let newContext = await sync.start({ context: context });
Setting.setValue(contextKey, JSON.stringify(newContext));
} catch (error) {