1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Handle resource conflicts

This commit is contained in:
Laurent Cozic
2020-05-31 16:57:16 +01:00
parent 1852d9291d
commit 36776cd615
7 changed files with 153 additions and 18 deletions

View File

@@ -77,7 +77,7 @@ export default class ResourceEditWatcher {
const makeSaveAction = (resourceId:string, path:string) => {
return async () => {
this.logger().info(`ResourceEditWatcher: Saving resource ${resourceId}`);
await shim.updateResourceBlob(resourceId, path);
await Resource.updateResourceBlob(resourceId, path);
this.eventEmitter_.emit('resourceChange', { id: resourceId });
};
};