mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-30 12:16:00 +00:00
Fixed unix compile.
This commit is contained in:
parent
2f1c4ebe04
commit
cbd2d3f4d2
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user