Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
fix: ensure keywords are returned as an actual string array
Browse files Browse the repository at this point in the history
[skip publish]
  • Loading branch information
favna committed Jul 24, 2020
1 parent 5deaebf commit ff51f33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test": "jest",
"start": "node generated/api",
"build": "tsc -b src",
"clean": "tsc -b src --clean",
"watch": "tsc -b src -w",
"dev": "yarn build && yarn start",
"commit": "git-cz",
Expand Down
2 changes: 2 additions & 0 deletions src/services/HoroscopeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export default class HoroscopeService {
.text()
.split('Keywords:\u00A0')
.slice(1)
.join('')
.split(', ')
.map(toTitleCase);
}

Expand Down

0 comments on commit ff51f33

Please sign in to comment.