This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from bharatari/dev
v1.1.0
- Loading branch information
Showing
6 changed files
with
110 additions
and
100 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,18 @@ | ||
import data from '../../utils/data'; | ||
import utils from './utils'; | ||
|
||
export async function fetchSections(params) { | ||
try { | ||
let response = await data.request('section', 'get', null, params); | ||
export async function fetchSections(key, params) { | ||
let response = await data.request('section', 'get', null, params); | ||
|
||
response = utils.buildSectionNames(response); | ||
response = utils.buildSectionNames(response); | ||
|
||
return response; | ||
} catch (e) { | ||
throw e; | ||
} | ||
return response; | ||
} | ||
|
||
export async function fetchSection(id) { | ||
try { | ||
let response = await data.request('section', 'get', id); | ||
let response = await data.request('section', 'get', id); | ||
|
||
response = utils.buildSectionName(response); | ||
response = utils.buildSectionName(response); | ||
|
||
return response; | ||
} catch (e) { | ||
throw e; | ||
} | ||
return response; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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