SYNC: fixes

This commit is contained in:
SPRINX0\prochazka
2025-02-24 16:13:43 +01:00
committed by Diflow
parent 20a1cc89ae
commit 805a063fa1
4 changed files with 28 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ async function importDbFromFolder({ connection, systemConnection, driver, folder
// console.log('CREATING STRUCTURE:', sql);
await executeQuery({ connection, systemConnection: dbhan, driver, sql, logScriptItems: true });
for (const table of model.tables) {
for (const table of modelAdapted.tables) {
const fileName = path.join(folder, `${table.pureName}.jsonl`);
if (await fs.exists(fileName)) {
const src = await jsonLinesReader({ fileName });