配置生成逻辑优化
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
#include <string_view>
|
||||
#include "../server/Global.h"
|
||||
#include "Database.h"
|
||||
std::shared_ptr<Data_Source> create_from_json(const JSON* that_json, bool not_exist_use_default_value) {
|
||||
std::shared_ptr<Data_Source> create_from_json(const JSON* that_json) {
|
||||
std::string type = that_json->get_string("type");
|
||||
std::shared_ptr<Data_Source> ret = create_data_source_from_type(type);
|
||||
ret->from_json(that_json, not_exist_use_default_value);
|
||||
ret->from_json(that_json);
|
||||
return ret;
|
||||
}
|
||||
std::shared_ptr<Data_Source> Data_Source::that() {
|
||||
|
||||
Reference in New Issue
Block a user