From 2d0bc4a4246b78ed82404e1d23440f62fd33a149 Mon Sep 17 00:00:00 2001 From: Hamatoma Date: Mon, 31 Jan 2022 20:53:35 +0100 Subject: [PATCH] YamlMerger: logging merged files, globals.sql: fix comboActiveUsers --- dart_tools/bin/yaml_merger.dart | 4 +++- rest_server/data/sql/precedence/global.sql.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dart_tools/bin/yaml_merger.dart b/dart_tools/bin/yaml_merger.dart index 95f56e8..fe6e36e 100644 --- a/dart_tools/bin/yaml_merger.dart +++ b/dart_tools/bin/yaml_merger.dart @@ -42,6 +42,7 @@ class Merger { } /// Merges the [fileSource] and [filePreference] into the [target] file. void mergeOneFile(File fileSource, File filePreference, String target) { + print('merging ${fileSource.path}'); parseKeys(filePreference); final output = []; final foundKeys = {}; @@ -110,7 +111,8 @@ class Merger { logger.error('source not a directory: $pathTarget'); } else { /// Copy/merge the files from dirSource: - for (var file in dirSource.listSync()) { + final dirs = dirSource.listSync().toList(); + for (var file in dirs) { final node = basename(file.path); if (! node.endsWith('.yaml')){ continue; diff --git a/rest_server/data/sql/precedence/global.sql.yaml b/rest_server/data/sql/precedence/global.sql.yaml index 3dde806..d55edef 100644 --- a/rest_server/data/sql/precedence/global.sql.yaml +++ b/rest_server/data/sql/precedence/global.sql.yaml @@ -15,4 +15,4 @@ comboActiveUsers: type: list parameters: [] sql: "SELECT user_id, user_displayname from users - WHERE user_status = 1 ORDER BY by user_displayname;" + WHERE user_status = 1 ORDER BY user_displayname;" -- 2.39.5