Put back the different cases

Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-06-04 15:03:51 +02:00
parent f34f475a4f
commit 08483e2dd8
2 changed files with 9 additions and 11 deletions

View File

@ -69,11 +69,11 @@ jobs:
directory: ./dist directory: ./dist
repository: tcgdex/distribution repository: tcgdex/distribution
- name: Upload # - name: Upload
run: yarn upload # run: yarn upload
if: ${{ steps.commit.outcome == 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }} # if: ${{ steps.commit.outcome == 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
env: # env:
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }} # UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }} # UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }} # UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }}
UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }} # UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }}

View File

@ -18,9 +18,7 @@ export default class implements Endpoint<SerieList, SerieSingle, {}, Array<Serie
const val = common[key]; const val = common[key];
const gen = await serieToSerieSingle(val, this.lang) const gen = await serieToSerieSingle(val, this.lang)
const name = val.name[this.lang] const name = val.name[this.lang]
if (name && val.id !== name.toLowerCase()) { items[name] = gen
items[name] = gen
}
items[val.id] = gen items[val.id] = gen
} }
return items return items