From 4890aea09712b2bcb2082a5a264a03950b7d4293 Mon Sep 17 00:00:00 2001 From: Nick Volynkin Date: Tue, 1 Feb 2022 19:54:02 +0700 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20a=20typo=20in=20Getting=20Started=20?= =?UTF-8?q?=E2=80=94=20First=20Steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/getting_started/getting_started_imcp.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/getting_started/getting_started_imcp.rst b/doc/getting_started/getting_started_imcp.rst index 8d9dc78316..f3e43a9524 100644 --- a/doc/getting_started/getting_started_imcp.rst +++ b/doc/getting_started/getting_started_imcp.rst @@ -297,7 +297,7 @@ Paste the code below into ``api.lua`` and click "Apply". function add_user(request) local fullname = request:post_param("fullname") local result, err = crud.insert_object('users', {user_id = uuid.new(), fullname = fullname}) - if err ~ = nil then + if err ~= nil then return {body = json.encode({status = "Error!", error = err}), status = 500} end From 7023d93e82e3cea42fa3a82781d8e3635ff19183 Mon Sep 17 00:00:00 2001 From: Kseniia Antonova Date: Thu, 3 Feb 2022 10:46:44 +0300 Subject: [PATCH 2/2] Fix typo --- doc/getting_started/getting_started_imcp.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/getting_started/getting_started_imcp.rst b/doc/getting_started/getting_started_imcp.rst index f3e43a9524..5c18cc492c 100644 --- a/doc/getting_started/getting_started_imcp.rst +++ b/doc/getting_started/getting_started_imcp.rst @@ -315,8 +315,8 @@ Paste the code below into ``api.lua`` and click "Apply". end function like_video(request) - local video_id = request: post_param("video_id") - local user_id = request: post_param("user_id") + local video_id = request:post_param("video_id") + local user_id = request:post_param("user_id") local result, err = crud.insert_object('likes', {like_id = uuid.new(), video_id = uuid.fromstr(video_id),