Fix hardcoded query bug

Reviewers: buda

Reviewed By: buda

Differential Revision: https://phabricator.memgraph.io/D223
This commit is contained in:
Mislav Bradac 2017-04-04 18:32:16 +02:00
parent a58e269176
commit 13aafa35cf

View File

@ -47,6 +47,7 @@ class CPUPlan : public PlanInterface<Stream> {
if (edge.edge_type() != db_accessor.edge_type("score")) continue;
if ((profile(from) && garment(to)) || (profile(to) && garment(from))) {
edge.PropsSet(db_accessor.property("score"), args.At(3));
edge.SwitchNew();
std::vector<TypedValue> result{TypedValue(edge)};
stream.Result(result);
}