summaryrefslogtreecommitdiff
path: root/app/services/api/character-api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/api/character-api.ts')
-rw-r--r--app/services/api/character-api.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/services/api/character-api.ts b/app/services/api/character-api.ts
index 7755006..e28ec48 100644
--- a/app/services/api/character-api.ts
+++ b/app/services/api/character-api.ts
@@ -1,7 +1,7 @@
-import { ApiResponse } from "apisauce"
-import { Api } from "./api"
-import { GetCharactersResult } from "./api.types"
-import { getGeneralApiProblem } from "./api-problem"
+import { ApiResponse } from 'apisauce'
+import { Api } from './api'
+import { GetCharactersResult } from './api.types'
+import { getGeneralApiProblem } from './api-problem'
const API_PAGE_SIZE = 50
@@ -16,7 +16,7 @@ export class CharacterApi {
try {
// make the api call
const response: ApiResponse<any> = await this.api.apisauce.get(
- "https://raw.githubusercontent.com/infinitered/ignite/master/data/rick-and-morty.json",
+ 'https://raw.githubusercontent.com/infinitered/ignite/master/data/rick-and-morty.json',
{ amount: API_PAGE_SIZE },
)
@@ -28,10 +28,10 @@ export class CharacterApi {
const characters = response.data.results
- return { kind: "ok", characters }
+ return { kind: 'ok', characters }
} catch (e) {
__DEV__ && console.tron.log(e.message)
- return { kind: "bad-data" }
+ return { kind: 'bad-data' }
}
}
}