Email change on user

This commit is contained in:
2024-07-27 02:52:24 +02:00
parent 683b6020b7
commit 12f7176467
6 changed files with 86 additions and 25 deletions
+2 -1
View File
@@ -51,11 +51,12 @@ class ApiError extends Exception
]), 500);
}
public static function failedUpdate(array $fields)
public static function failedUpdate(array $fields, array $reasons)
{
return new ApiError(json_encode([
"code" => "FailedUpdate",
"fields" => $fields,
"reasons" => $reasons,
]), 500);
}
}