Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #79 add dropbox-refresh-token #82

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Fix #79 add dropbox-refresh-token #82

merged 1 commit into from
Apr 19, 2024

Conversation

boly38
Copy link
Owner

@boly38 boly38 commented Apr 17, 2024

Fix #79 add dropbox-refresh-token

  • add dropboxAppKey, dropboxAppSecret and dropboxRefreshToken (long-lived offline refresh token) : required to activate optional dropbox feature.
  • MT_DROPBOX_TOKEN is now deprecated
  • refacto about Promise

reject

@boly38 boly38 self-assigned this Apr 17, 2024
@boly38 boly38 added the enhancement New feature or request label Apr 17, 2024
reject(new Error(`Dropbox path '${path}' dont exist`));
return;
}
const errorMessage = `Dropbox list ${path}: [status:${status}] ${error?.error_summary}`;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes cf #83

@boly38
Copy link
Owner Author

boly38 commented Apr 18, 2024

eslint 9 config file format not supported by houndci
http://help.houndci.com/en/articles/2138530-eslint

@boly38 boly38 force-pushed the dropbox-refresh-token branch from 75005fd to 05fff21 Compare April 19, 2024 16:12
lib/MTCommand.js Outdated
return;
}
if (action === 'dumpz') {
this.mt.mongodump(new MTOptions({
"encrypt":true
}))
.then(cmd.logSuccess.bind(cmd)).catch(cmd.logError.bind(cmd));
.then(cmd.logSuccess.bind(cmd)).catch(error => cmd.logError(error.message));;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- add `dropboxAppKey`, `dropboxAppSecret` and `dropboxRefreshToken` (long-lived offline refresh token) : required to activate optional dropbox feature.
- MT_DROPBOX_TOKEN is now deprecated
- refacto about Promise

reject
@boly38 boly38 force-pushed the dropbox-refresh-token branch from 05fff21 to 11f4e90 Compare April 19, 2024 18:05
@boly38 boly38 merged commit 7cf972a into main Apr 19, 2024
2 checks passed
@boly38 boly38 deleted the dropbox-refresh-token branch April 19, 2024 18:11
@boly38 boly38 added this to the v2.2.2 milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support dropbox refresh
1 participant