We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977da4e commit b5958e0Copy full SHA for b5958e0
src/example/service.js
@@ -6,7 +6,7 @@ let config = {
6
LMS_BASE_URL: null,
7
};
8
9
-let apiClient = null;
+let apiClient = null; // eslint-disable-line
10
11
function validateConfiguration(newConfig) {
12
Object.keys(config).forEach((key) => {
@@ -23,10 +23,10 @@ export function configureApiService(newConfig, newApiClient) {
23
}
24
25
export async function getData(data) {
26
- //const { data } = await apiClient.get(`${config.API_BASE_URL}/example/`, {
27
- return new Promise((resolve, reject) => {
+ // const { data } = await apiClient.get(`${config.API_BASE_URL}/example/`, {
+ return new Promise((resolve) => {
28
setTimeout(() => {
29
resolve(data);
30
}, 2000);
31
- });;
+ });
32
0 commit comments