From 1cf66b59345f57ed12205825053a0b10bcb2d28a Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 21 Jun 2021 09:13:18 +0100 Subject: [PATCH] Update account.php --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 8c29e14da0..63498c7507 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -1117,7 +1117,7 @@ App::patch('/v1/account/email') ] )); - $user = $projectDB->updateDocument($document, ['email' => $email]); + $user = $projectDB->updateDocument($document); $projectDB->addUniqueKey(\md5($document['$collection'].':'.'email'.'='.$email));