Float field type should be captialized.

This commit is contained in:
Kishore Nallan 2017-10-24 08:33:16 +05:30
parent a6dced3c43
commit a7ba29666e
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ namespace field_types {
static const std::string STRING = "string";
static const std::string INT32 = "int32";
static const std::string INT64 = "int64";
static const std::string FLOAT = "FLOAT";
static const std::string FLOAT = "float";
static const std::string FLOAT_ARRAY = "float[]";
static const std::string STRING_ARRAY = "string[]";
static const std::string INT32_ARRAY = "int32[]";

View File

@ -772,7 +772,7 @@ Option<nlohmann::json> Collection::search(std::string query, const std::vector<s
for(const sort_by & _sort_field: sort_fields) {
if(sort_index.count(_sort_field.name) == 0) {
std::string error = "Could not find a field named `" + _sort_field.name + "` in the schema.";
std::string error = "Could not find a field named `" + _sort_field.name + "` in the schema for sorting.";
return Option<nlohmann::json>(400, error);
}