-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/migrations: Use non-throwing remote methods (#2229)
In the latest migration, we make requests to the remote Cozy to fetch the latest version of known directories from their _id. However, these known directories can have been deleted on the Cozy. This was expected and the migration can deal with missing directories but the method we were using the fetch the directories would throw on missing documents instead of returning the expected `null` value. This leads to failing migrations. To avoid this, we created another method returning `null` instead of throwing when the expected remote directory is missing and we'll use it in the migration.
- Loading branch information
1 parent
b670bc4
commit e6817b9
Showing
3 changed files
with
78 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters