You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
All: Save size of a resource to the database; and added mechanism to run non-database migrations
This commit is contained in:
@ -152,6 +152,9 @@ function shimInit() {
|
||||
resource = Object.assign({}, resource, defaultProps);
|
||||
}
|
||||
|
||||
const fileStat = await shim.fsDriver().stat(targetPath);
|
||||
resource.size = fileStat.size;
|
||||
|
||||
return await Resource.save(resource, { isNew: true });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user