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 + ```