mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Minor tweaks
This commit is contained in:
parent
a6d6201ecb
commit
f6633e23f5
@ -271,6 +271,11 @@ class BaseApplication {
|
||||
}
|
||||
}
|
||||
|
||||
// if (action.type === 'NOTE_DELETE') {
|
||||
// // Update folders if a note is deleted in case the deleted note was a conflict
|
||||
// await FoldersScreenUtils.refreshFolders();
|
||||
// }
|
||||
|
||||
if (this.hasGui() && action.type == 'SETTING_UPDATE_ONE' && action.key == 'sync.interval' || action.type == 'SETTING_UPDATE_ALL') {
|
||||
reg.setupRecurrentSync();
|
||||
}
|
||||
|
@ -212,6 +212,18 @@ class OneDriveApi {
|
||||
// type: 'system',
|
||||
// errno: 'EAGAIN',
|
||||
// code: 'EAGAIN' }
|
||||
this.logger().info('Got error below - retrying (' + i + ')...');
|
||||
this.logger().info(error);
|
||||
await time.sleep((i + 1) * 3);
|
||||
continue;
|
||||
} else if (error && error.error && error.error.code === 'resourceModified') {
|
||||
// NOTE: not tested, very hard to reproduce and non-informative error message, but can be repeated
|
||||
|
||||
// Error: ETag does not match current item's value
|
||||
// Code: resourceModified
|
||||
// Header: {"_headers":{"cache-control":["private"],"transfer-encoding":["chunked"],"content-type":["application/json"],"request-id":["d...ea47"],"client-request-id":["d99...ea47"],"x-ms-ags-diagnostic":["{\"ServerInfo\":{\"DataCenter\":\"North Europe\",\"Slice\":\"SliceA\",\"Ring\":\"2\",\"ScaleUnit\":\"000\",\"Host\":\"AGSFE_IN_13\",\"ADSiteName\":\"DUB\"}}"],"duration":["96.9464"],"date":[],"connection":["close"]}}
|
||||
// Request: PATCH https://graph.microsoft.com/v1.0/drive/root:/Apps/JoplinDev/f56c5601fee94b8085524513bf3e352f.md null "{\"fileSystemInfo\":{\"lastModifiedDateTime\":\"....\"}}" {"headers":{"Content-Type":"application/json","Authorization":"bearer ...
|
||||
|
||||
this.logger().info('Got error below - retrying (' + i + ')...');
|
||||
this.logger().info(error);
|
||||
await time.sleep((i + 1) * 3);
|
||||
|
@ -5,8 +5,7 @@
|
||||
ROOT_DIR="$PWD"
|
||||
|
||||
# If any README file has been changed, update the website
|
||||
'README\|build-website'
|
||||
git status -s | grep ' README\| build-website.js' > /dev/null
|
||||
git status -s | grep ' README\| build-website.js' > /dev/null 2>&1
|
||||
readmeStatus=$?
|
||||
if [ $readmeStatus -eq 0 ]; then
|
||||
node "$ROOT_DIR/Tools/build-website.js"
|
||||
|
Loading…
Reference in New Issue
Block a user