db sync fixes

This commit is contained in:
Jan Prochazka
2021-11-14 09:36:14 +01:00
parent 4260497900
commit bb9eacf38e
6 changed files with 30 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ async function importDbModel(inputDir) {
const text = await fs.readFile(path.join(dir, name), { encoding: 'utf-8' });
files.push({
name,
name: path.parse(name).base,
text,
json: name.endsWith('.yaml') ? yaml.load(text) : null,
});