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

API-3 - Extend API Info response #250

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrsvsrg
Copy link
Contributor

No description provided.

@andrsvsrg andrsvsrg requested a review from Valodya May 21, 2024 14:40
src/index.js Outdated
@@ -166,6 +168,18 @@ class Backendless {
return app
}

appInfoPromise() {
Copy link
Member

Choose a reason for hiding this comment

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

the rare case but it could be:

the initApp might be called several times with a different credential, so we need to have some kind of reset appInfoPromise

appInfoPromise(reset) {
if (reset || !this.__appInfoPromise) {
....
}

src/rt.js Outdated
@@ -31,10 +24,13 @@ export default class RT extends BackendlessRTClient {
}
},

getAppInfo: async () => {
Copy link
Member

Choose a reason for hiding this comment

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

hostResolver(){
  return app.appInfoPromise().then(({ rtURL })=> rtURL)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants