Fixed unix compile.

This commit is contained in:
casey langen 2018-01-06 12:09:03 +00:00
parent 2f1c4ebe04
commit cbd2d3f4d2
2 changed files with 3 additions and 5 deletions

View File

@ -114,8 +114,6 @@ bool AlbumListQuery::OnRun(Connection& db) {
category::ReplaceAll(query, "{{regular_predicates}}", regular);
category::ReplaceAll(query, "{{album_list_filter}}", albumFilter);
OutputDebugStringA(query.c_str());
Statement stmt(query.c_str(), db);
Apply(stmt, args);

View File

@ -810,7 +810,7 @@ ITrackList* WebSocketServer::QueryTracksByCategory(json& request, int& limit, in
std::string category = options.value(key::category, "");
int64_t selectedId = options.value<int64_t>(key::id, -1);
json& predicates = options.value(key::predicates, json::array());
auto predicates = options.value(key::predicates, json::array());
std::string filter = options.value(key::filter, "");
@ -874,7 +874,7 @@ void WebSocketServer::RespondWithQueryCategory(connection_hdl connection, json&
int64_t predicateId = options.value<int64_t>(key::predicate_id, -1LL);
/* multiple predicates */
json& predicates = options.value(key::predicates, json::array());
auto predicates = options.value(key::predicates, json::array());
if (category.size()) {
IValueList* result;
@ -1246,4 +1246,4 @@ void WebSocketServer::OnMessage(server* s, connection_hdl hdl, message_ptr msg)
std::cerr << "message parse failed: " << msg->get_payload() << "\n";
this->RespondWithInvalidRequest(hdl, value::invalid, value::invalid);
}
}
}