mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
fix
This commit is contained in:
@@ -7,7 +7,9 @@ const loadFilesRecursive = require('./loadFilesRecursive');
|
||||
async function loadModelFolder(inputDir) {
|
||||
const files = [];
|
||||
|
||||
const dir = inputDir.startsWith('archive:') ? resolveArchiveFolder(inputDir.substring('archive:'.length)) : inputDir;
|
||||
const dir = inputDir.startsWith('archive:')
|
||||
? resolveArchiveFolder(inputDir.substring('archive:'.length))
|
||||
: path.resolve(inputDir);
|
||||
|
||||
for (const name of await loadFilesRecursive(dir)) {
|
||||
if (name.endsWith('.table.yaml') || name.endsWith('.sql')) {
|
||||
|
||||
Reference in New Issue
Block a user