Fix alter user query

Reviewers: msantl

Reviewed By: msantl

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1519
This commit is contained in:
Matej Ferencevic 2018-07-30 16:19:41 +02:00
parent 6546d1de07
commit 5d73c64fd8

View File

@ -3929,7 +3929,7 @@ class ModifyUserCursor : public Cursor {
}
} else {
// Update an existing user.
auto user = ctx.auth_->GetUser(self_.username());
user = ctx.auth_->GetUser(self_.username());
if (!user) {
throw QueryRuntimeException(
fmt::format("User '{}' doesn't exist!", self_.username()));