1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-21 23:17:42 +02:00
This commit is contained in:
Laurent Cozic
2020-07-23 23:06:58 +00:00
parent 9cebbbe7cf
commit d6daa34e0a

View File

@ -96,7 +96,7 @@ export default class ResourceEditWatcher {
}; };
const handleChangeEvent = async (path:string) => { const handleChangeEvent = async (path:string) => {
this.logger().debug('ResourceEditWatcher: handleChangeEvent: ' + path); this.logger().debug(`ResourceEditWatcher: handleChangeEvent: ${path}`);
const watchedItem = this.watchedItemByPath(path); const watchedItem = this.watchedItemByPath(path);
@ -128,7 +128,7 @@ export default class ResourceEditWatcher {
this.logger().debug(`ResourceEditWatcher: Queuing save action: ${resourceId}`); this.logger().debug(`ResourceEditWatcher: Queuing save action: ${resourceId}`);
watchedItem.asyncSaveQueue.push(makeSaveAction(resourceId, path)); watchedItem.asyncSaveQueue.push(makeSaveAction(resourceId, path));
watchedItem.lastFileUpdatedTime = editedFileUpdatedTime; watchedItem.lastFileUpdatedTime = editedFileUpdatedTime;
} };
if (!this.watcher_) { if (!this.watcher_) {
this.watcher_ = this.chokidar_.watch(fileToWatch); this.watcher_ = this.chokidar_.watch(fileToWatch);