mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Put back the different cases
Signed-off-by: Florian BOUILLON <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
f34f475a4f
commit
08483e2dd8
16
.github/workflows/node.js.yml
vendored
16
.github/workflows/node.js.yml
vendored
@ -69,11 +69,11 @@ jobs:
|
||||
directory: ./dist
|
||||
repository: tcgdex/distribution
|
||||
|
||||
- name: Upload
|
||||
run: yarn upload
|
||||
if: ${{ steps.commit.outcome == 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
|
||||
env:
|
||||
UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
||||
UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
||||
UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }}
|
||||
UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }}
|
||||
# - name: Upload
|
||||
# run: yarn upload
|
||||
# if: ${{ steps.commit.outcome == 'success' && (github.event_name == 'push' || github.event_name == 'repository_dispatch') }}
|
||||
# env:
|
||||
# UPLOAD_REMOTE: ${{ secrets.UPLOAD_REMOTE }}
|
||||
# UPLOAD_DIST: ${{ secrets.UPLOAD_DIST }}
|
||||
# UPLOAD_USERNAME: ${{ secrets.UPLOAD_USERNAME }}
|
||||
# UPLOAD_PASSWORD: ${{ secrets.UPLOAD_PASSWORD }}
|
||||
|
@ -18,9 +18,7 @@ export default class implements Endpoint<SerieList, SerieSingle, {}, Array<Serie
|
||||
const val = common[key];
|
||||
const gen = await serieToSerieSingle(val, this.lang)
|
||||
const name = val.name[this.lang]
|
||||
if (name && val.id !== name.toLowerCase()) {
|
||||
items[name] = gen
|
||||
}
|
||||
items[name] = gen
|
||||
items[val.id] = gen
|
||||
}
|
||||
return items
|
||||
|
Loading…
x
Reference in New Issue
Block a user