mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-22 19:02:10 +00:00
* feat: Add status Dashboard Still need some polishing like using the compiler instead of the live DB Signed-off-by: Avior <github@avior.me> * refactor: Simplified compiler files generators Signed-off-by: Avior <florian.bouillon@delta-wings.net> * chore: Add step to compiler for stats and optimize Signed-off-by: Avior <github@avior.me> * refactor: Remove unused variable Signed-off-by: Avior <github@avior.me>
11 lines
378 B
TypeScript
11 lines
378 B
TypeScript
import { SupportedLanguages } from '../../../interfaces'
|
|
import { FileFunction } from '../compilerInterfaces'
|
|
import { getSeries, serieToSerieSingle } from '../utils/serieUtil'
|
|
|
|
const fn: FileFunction = async (lang: SupportedLanguages) => {
|
|
const common = await getSeries(lang)
|
|
return await Promise.all(common.map((val) => serieToSerieSingle(val, lang)))
|
|
}
|
|
|
|
export default fn
|