manuerwin / joplin-plugin-attache

Mass replacement of resources such as resized image files.
GNU General Public License v3.0
11 stars 0 forks source link

Include original Resource metadata in replaced resource #2

Closed manuerwin closed 2 years ago

manuerwin commented 2 years ago

Not currently working due to the synchronisation conflict safeguards that mean we need a three step process (delete, sync, create).

Need to figure out how to define the returned collection of originalResources from Joplin resources GET above the two loops I'm doing for delete and create.

title: originalResource.title,
user_created_time: originalResource.created_time,
user_updated_time: originalResource.updated_time,
manuerwin commented 2 years ago

Thoughts on solution - push the metadata into the .REPLACE file currently used for processing orchestration.