-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors setting Google Drive permissions not being reported
If an error occurred when attemping to change file permissions after selecting a file from Google Drive, the LMS frontend incorrectly assumed the attempt had succeeded. This is because the `request.execute` API doesn't work as the code expected. It always invokes its first argument with the response. The `request.then` API is the correct Promise-like API. The argument passed to the rejection handler then needs to be processed to turn the result into an `Error` as expected by the calling code.
- Loading branch information
1 parent
1799b89
commit 0bba5e3
Showing
2 changed files
with
24 additions
and
6 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