mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-23 19:32:11 +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>
12 lines
376 B
TypeScript
12 lines
376 B
TypeScript
import { getSets, setToSetSingle } from '../utils/setUtil'
|
|
import { SupportedLanguages } from '../../../interfaces'
|
|
import { FileFunction } from '../compilerInterfaces'
|
|
|
|
|
|
const fn: FileFunction = async (lang: SupportedLanguages) => {
|
|
const common = await getSets(undefined, lang)
|
|
return await Promise.all(common.map((set) => setToSetSingle(set, lang)))
|
|
}
|
|
|
|
export default fn
|