mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-14 08:39:17 +00:00
fix: Fixed DB path (#134)
* Fixed path Signed-off-by: Avior <github@avior.me> * Fixed Builder Signed-off-by: Avior <github@avior.me>
This commit is contained in:
@ -21,7 +21,7 @@ export async function getSet(name: string, serie = '*'): Promise<Set> {
|
||||
if (!setCache[name]) {
|
||||
try {
|
||||
const [path] = await smartGlob(`${DB_PATH}/data/${serie}/${name}.js`)
|
||||
setCache[name] = (await import('../../' + path)).default
|
||||
setCache[name] = (await import(`../../${path}`)).default
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
console.error(`Error trying to import importing (${`db/data/${serie}/${name}.js`})`)
|
||||
|
Reference in New Issue
Block a user