You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Improved logic to set resource file size
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
const BaseItem = require('lib/models/BaseItem');
|
||||
const Resource = require('lib/models/Resource');
|
||||
const ResourceService = require('lib/services/ResourceService');
|
||||
const { Logger } = require('lib/logger.js');
|
||||
|
||||
class DecryptionWorker {
|
||||
@ -132,6 +133,10 @@ class DecryptionWorker {
|
||||
throw error;
|
||||
}
|
||||
|
||||
// 2019-05-12: Temporary to set the file size of the resources
|
||||
// that weren't set in migration/20.js due to being on the sync target
|
||||
await ResourceService.autoSetFileSizes();
|
||||
|
||||
this.logger().info('DecryptionWorker: completed decryption.');
|
||||
|
||||
this.dispatchReport({ state: 'idle' });
|
||||
|
Reference in New Issue
Block a user