From 937084a9a0f2a6a2ac9f0434ea46ce582586fc19 Mon Sep 17 00:00:00 2001 From: Dolu <47056777+dolutattoo@users.noreply.github.com> Date: Fri, 21 Jan 2022 08:34:46 +0100 Subject: [PATCH] Fixed wrong variable name --- docs/usage/update.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage/update.md b/docs/usage/update.md index da7db70..4545e2f 100644 --- a/docs/usage/update.md +++ b/docs/usage/update.md @@ -23,7 +23,7 @@ Returns the number of affected rows by the query. -- Alias: MySQL.update CreateThread(function() - local id = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}) + local affectedRows = MySQL.update.await('UPDATE users SET firstname = ? WHERE identifier = ? ', {newName, playerIdentifier}) if affectedRows then print(affectedRows) end @@ -46,4 +46,4 @@ Returns the number of affected rows by the query. if (affectedRows) console.log(affectedRows) }) - ``` \ No newline at end of file + ```