You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Electron, Mobile: Created alarm service and drivers
This commit is contained in:
@ -419,8 +419,20 @@ class Synchronizer {
|
||||
}
|
||||
content = await BaseItem.unserialize(content);
|
||||
let ItemClass = BaseItem.itemClass(content);
|
||||
content = ItemClass.filter(content);
|
||||
|
||||
let newContent = null;
|
||||
|
||||
if (action === 'createLocal') {
|
||||
newContent = Object.assign({}, content);
|
||||
} else if (action === 'updateLocal') {
|
||||
newContent = BaseModel.diffObjects(local, content);
|
||||
newContent.type_ = content.type_;
|
||||
newContent.id = content.id;
|
||||
} else {
|
||||
throw new Error('Unknown action: ' + action);
|
||||
}
|
||||
|
||||
let newContent = Object.assign({}, content);
|
||||
let options = {
|
||||
autoTimestamp: false,
|
||||
nextQueries: BaseItem.updateSyncTimeQueries(syncTargetId, newContent, time.unixMs()),
|
||||
|
Reference in New Issue
Block a user