Skip to content

Fix a typo in Getting Started — First Steps #2650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/getting_started/getting_started_imcp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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),
Expand Down